foreach instead of while-list-each

This commit is contained in:
Ralf Becker 2004-08-24 19:59:31 +00:00
parent fb1f4f9d6b
commit acc5c0dfb0

View File

@ -78,7 +78,7 @@
/* Load hook file with functions to validate each config (one/none/all) */
$GLOBALS['phpgw']->hooks->single('config_validate',$appname);
while (list($key,$config) = each($_POST['newsettings']))
foreach($_POST['newsettings'] as $key => $config)
{
if ($config)
{