From 6486998106e4a5ead646467031b9e3c1e2295dfe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 3 Nov 2003 00:25:21 +0000 Subject: [PATCH] added syntax for not-empty check in filter, eg. email=!'' --- phpgwapi/inc/class.contacts_sql.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.contacts_sql.inc.php b/phpgwapi/inc/class.contacts_sql.inc.php index 4fd478731f..68dad5958d 100644 --- a/phpgwapi/inc/class.contacts_sql.inc.php +++ b/phpgwapi/inc/class.contacts_sql.inc.php @@ -380,6 +380,10 @@ { $filterlist .= $name."=".$value.";"; } + elseif ($value == "!''") // check for not empty + { + $filterlist .= $name."!='';"; + } else { $filterlist .= $name."='".$value."';"; @@ -478,7 +482,7 @@ $fwhere = " WHERE last_mod > $lastmod "; } - if ($DEBUG && $last_mod_filter && fwhere) + if ($DEBUG && $last_mod_filter && $fwhere) { echo "
DEBUG - last_mod_filter added to fwhere: $fwhere"; }