From 1166ecf247b42d22460ed52e9782fdb1e8baf612 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 1 Jan 2004 23:31:13 +0000 Subject: [PATCH] Replace reset/while with foreach --- addressbook/inc/class.uiaddressbook.inc.php | 123 ++++++++++++++------ 1 file changed, 85 insertions(+), 38 deletions(-) diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index 8a8fd4ade0..10d3719829 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -117,7 +117,8 @@ { $select .= ''."\n"; } - while(list($key,$val) = each($list)) +// while(list($key,$val) = each($list)) + foreach($list as $key => $val) { $select .= '