Fix #270095 by suit4: prevent validation error when the class field is empty
authorJoao Ventura
Fri, 13 Jun 2008 10:16:55 +0000 (10:16 +0000)
committerJoao Ventura
Fri, 13 Jun 2008 10:16:55 +0000 (10:16 +0000)
print.module

index cc35251..4ebcbe9 100644 (file)
@@ -255,7 +255,9 @@ function print_fill_attributes($title = '', $class = '', $new_window = FALSE) {
 
   $attributes = array();
   $attributes['title'] = $title;
-  $attributes['class'] = $class;
+  if (!empty($class)) {
+    $attributes['class'] = $class;
+  }
 
   if ($new_window) {
     switch ($print_settings['newwindow']) {