"curly brackets are depricated in php6"

This commit is contained in:
Ralf Becker 2008-11-12 18:05:19 +00:00
parent f2b50bdf8b
commit bf3c88731d

View File

@ -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