JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
silenced warning when evenodd called with no data
[wfpl.git] / template.php
index b602573..44db726 100644 (file)
@@ -302,7 +302,7 @@ function tem_auto_show(&$value) {
 
 function tem_auto_evenodd(&$values) {
        $even = true;
-       foreach($values as &$value) {
+       if($values) foreach($values as &$value) {
                $value['evenodd'] = $even ? 'even' : 'odd';
                $even = !$even;
        }