"fixed warning if there's no col-selection yet"

This commit is contained in:
Ralf Becker 2008-04-18 06:10:31 +00:00
parent a879dd4055
commit 92f16b2d7e

View File

@ -938,7 +938,7 @@ class uicontacts extends bocontacts
// do we need to read the custom fields, depends on the column is enabled and customfields exist // do we need to read the custom fields, depends on the column is enabled and customfields exist
$columselection = $this->prefs['nextmatch-addressbook.'.($do_email ? 'email' : 'index').'.rows']; $columselection = $this->prefs['nextmatch-addressbook.'.($do_email ? 'email' : 'index').'.rows'];
$available_distib_lists=$this->get_lists(EGW_ACL_EDIT); $available_distib_lists=$this->get_lists(EGW_ACL_EDIT);
if ($columselection) $columselection = explode(',',$columselection); $columselection = $columselection ? explode(',',$columselection) : array();
if (!$id_only && $rows) if (!$id_only && $rows)
{ {
$show_custom_fields = (!$columselection || in_array('customfields',$columselection)) && $this->customfields; $show_custom_fields = (!$columselection || in_array('customfields',$columselection)) && $this->customfields;