diff --git a/ChangeLog b/ChangeLog index d3bb40876..c85547b39 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-11-23 Alexander M. Turek + * server_privileges.php3: while (list() = each()) is not always as bad as + one might think ;-p + 2003-11-22 Garvin Hicking * ./*: More PHP3-compatibility removal, see 2003-11-20. diff --git a/server_privileges.php b/server_privileges.php index c90130aaf..6286e5100 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -319,7 +319,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = echo $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n"; - foreach($row AS $current_grant => $current_grant_value) { + while (list($current_grant, $current_grant_value) = each($row)) { if (in_array(substr($current_grant, 0, (strlen($current_grant) - 5)), array('Select', 'Insert', 'Update', 'References'))) { continue; } @@ -1429,4 +1429,4 @@ if (empty($adduser) && empty($checkprivs)) { echo "\n\n"; require('./footer.inc.php'); -?> \ No newline at end of file +?>