diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-01-15 19:50:13 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-01-15 19:50:13 +0100 |
commit | 49eb6e38061d744f4a35b78082dce49fa35f79c8 (patch) | |
tree | ababa433d605b4b15ca33fb6b7dd6988b6411b4c /inc/form.php | |
parent | 33e0cc3c9762a97626460911f3415b1564e564c3 (diff) | |
download | rpg-49eb6e38061d744f4a35b78082dce49fa35f79c8.tar.gz rpg-49eb6e38061d744f4a35b78082dce49fa35f79c8.tar.bz2 |
some more coding standard compliance updates
Diffstat (limited to 'inc/form.php')
-rw-r--r-- | inc/form.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/form.php b/inc/form.php index a514526b7..6d496f414 100644 --- a/inc/form.php +++ b/inc/form.php @@ -859,7 +859,9 @@ function form_menufield($attrs) { $s .= ' <select '.buildAttributes($attrs,true).'>'.DOKU_LF; if (!empty($attrs['_options'])) { $selected = false; - for($n=0;$n<count($attrs['_options']);$n++){ + + $cnt = count($attrs['_options']); + for($n=0; $n < $cnt; $n++){ @list($value,$text,$select) = $attrs['_options'][$n]; $p = ''; if (!is_null($text)) |