Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
812c501
)
silenced warning when evenodd called with no data
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 4 Nov 2009 10:48:35 +0000
(
05:48
-0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 4 Nov 2009 15:32:15 +0000
(10:32 -0500)
template.php
patch
|
blob
|
history
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;
}