Browse Source

aAttribs may not be used in all cases

pdontthink 17 years ago
parent
commit
e60b1dfe3a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      templates/default/horizontal_rule.tpl
  2. 1 1
      templates/default/line_break.tpl

+ 1 - 1
templates/default/horizontal_rule.tpl

@@ -27,7 +27,7 @@ extract($t);
 
 
 echo '<hr'; 
-foreach ($aAttribs as $key => $value) {
+if (isset($aAttribs)) foreach ($aAttribs as $key => $value) {
     echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
 }
 echo ' />';

+ 1 - 1
templates/default/line_break.tpl

@@ -27,7 +27,7 @@ extract($t);
 
 
 echo '<br';
-foreach ($aAttribs as $key => $value) {
+if (isset($aAttribs)) foreach ($aAttribs as $key => $value) {
     echo ' ' . $key . (is_null($value) ? '' : '="' . $value . '"');
 }
 echo ' />';