From bf3c88731d48c4ee4b19274a9abdce673ae15c68 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 12 Nov 2008 18:05:19 +0000 Subject: [PATCH] "curly brackets are depricated in php6" --- addressbook/inc/class.addressbook_sql.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index 46c656d7a7..a031ce8c47 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -242,7 +242,7 @@ class addressbook_sql extends so_sql // fix cat_id filter to search in comma-separated multiple cats and return subcats if (($cats = $filter['cat_id'])) { - if ($filter['cat_id']{0} == '!') + if ($filter['cat_id'][0] == '!') { $filter['cat_id'] = substr($filter['cat_id'],1); $not = 'NOT'; @@ -277,7 +277,7 @@ class addressbook_sql extends so_sql { foreach($criteria as $col => $val) { - if ($col{0} == '#') // search for a value in a certain custom field + if ($col[0] == '#') // search for a value in a certain custom field { $valarray=array(); # val may be a list of values, constructed by multiple select fields, to be able to do the contains feature of adv-search