Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
silenced warning when evenodd called with no data
[wfpl.git]
/
template.php
diff --git
a/template.php
b/template.php
index
b602573
..
44db726
100644
(file)
--- a/
template.php
+++ b/
template.php
@@
-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;
}