#23983 [NEW]: whereAdd($keywords); accepts blank $keywords

From: Date: Tue, 03 Jun 2003 13:56:30 +0000
Subject: #23983 [NEW]: whereAdd($keywords); accepts blank $keywords
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16950@lists.php.net to get a copy of this message
From: mike dot carter at koa dot uk dot com Operating system: Windows XP PHP version: 4.3.1 PHP Bug Type: PEAR related Bug description: whereAdd($keywords); accepts blank $keywords If I try to do a $dobj->whereAdd($keywords); and $keywords is empty/null then surely DataObjects would be best off just ignoring the request and disgarding it? Instead it adds an additional "AND" into the query string being built causing an invalid SQL query. -- Edit bug report at http://bugs.php.net/?id=23983&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23983&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23983&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23983&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23983&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23983&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23983&r=support Expected behavior: http://bugs.php.net/fix.php?id=23983&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23983&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23983&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23983&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23983&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23983&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23983&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23983&r=gnused

« previous php.pear.dev (#16950) next »