summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--print.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/print.module b/print.module
index cc35251..4ebcbe9 100644
--- a/print.module
+++ b/print.module
@@ -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']) {