From 5f87546421a46c0e1add47788c721977009503ca Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 3 Jul 2008 08:03:23 +0000 Subject: [PATCH] "fixed is not array warning in addressbook display block" --- addressbook/inc/class.addressbook_display.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_display.inc.php b/addressbook/inc/class.addressbook_display.inc.php index e02156beea..f5650e91aa 100755 --- a/addressbook/inc/class.addressbook_display.inc.php +++ b/addressbook/inc/class.addressbook_display.inc.php @@ -35,7 +35,7 @@ function get_rows(&$query,&$rows,&$readonlys,$id_only=false) $total = parent::get_rows($query,$rows,$readonlys); $query['template'] = $query['sitemgr_display'].'.rows'; - foreach($query['fields'] as $name) + if (is_array($query['fields'])) foreach($query['fields'] as $name) { $rows['show'][$name]=true; }