Skip to content
Browse files

Change while with foreach loop

  • Loading branch information...
1 parent 0b519cc commit e8ce5431dca86a9b15594bf58731b4c7f619ef4c @acidvertigo acidvertigo committed Jan 2, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 catalog/admin/modules.php
View
6 catalog/admin/modules.php
@@ -225,8 +225,7 @@
switch ($action) {
case 'edit':
$keys = '';
- reset($mInfo->keys);
- while (list($key, $value) = each($mInfo->keys)) {
+ foreach ($mInfo->keys as $key => $value) {
$keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />';
if ($value['set_function']) {
@@ -249,8 +248,7 @@
if ($mInfo->status == '1') {
$keys = '';
- reset($mInfo->keys);
- while (list(, $value) = each($mInfo->keys)) {
+ foreach ($mInfo->keys as $value) {
$keys .= '<strong>' . $value['title'] . '</strong><br />';
if ($value['use_function']) {
$use_function = $value['use_function'];

0 comments on commit e8ce543

Please sign in to comment.
Something went wrong with that request. Please try again.