projects
/
project/print.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
fb70cd3
)
Fix #270095 by suit4: prevent validation error when the class field is empty
author
Joao Ventura
Fri, 13 Jun 2008 10:16:55 +0000 (10:16 +0000)
committer
Joao Ventura
Fri, 13 Jun 2008 10:16:55 +0000 (10:16 +0000)
print.module
patch
|
blob
|
blame
|
history
diff --git
a/print.module
b/print.module
index
cc35251
..
4ebcbe9
100644
(file)
--- 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']) {