Skip to content

Commit 468633f

Browse files
committed
Merge pull request #13 from acidvertigo/patch-13
Move to foreach instead of while list each
2 parents 72bcdb9 + 118c3c3 commit 468633f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

catalog/index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@
105105
asort($define_list);
106106

107107
$column_list = array();
108-
reset($define_list);
109-
while (list($key, $value) = each($define_list)) {
108+
foreach($define_list as $key => $value) {
110109
if ($value > 0) $column_list[] = $key;
111110
}
112111

0 commit comments

Comments
 (0)