Explorar o código

aAttribs may not be used in all cases

pdontthink %!s(int64=17) %!d(string=hai) anos
pai
achega
e60b1dfe3a
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 ' />';