From 8e481b4cfebc91f0a0eabf41d5037954a5984617 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 23 Apr 2001 07:13:57 +0000 Subject: [PATCH] If no prefs are set, was causing an each error --- addressbook/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php index eeaed23aea..187e733b54 100755 --- a/addressbook/inc/functions.inc.php +++ b/addressbook/inc/functions.inc.php @@ -39,7 +39,7 @@ $phpgw->preferences->read_repository($phpgw_info['user']['account_id']); $i=0;$j=0; - while (list($col,$descr) = each($phpgw_info["user"]["preferences"]["addressbook"])) + while (list($col,$descr) = @each($phpgw_info["user"]["preferences"]["addressbook"])) { if ( substr($col,0,6) == 'extra_' ) {