Update of /cvsroot/phpbt/phpbt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28417
Modified Files:
query.php
Log Message:
Bug #1325308 - error when query bugs
Avoid an empty $bugs_with_comment. Problem found and patched by Alex Flint
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -r1.110 -r1.111
--- query.php 5 Oct 2005 20:25:57 -0000 1.110
+++ query.php 18 Oct 2005 18:52:29 -0000 1.111
@@ -179,8 +179,8 @@
// Search for additional comments with 'description'
// TODO: Change this to match the condition selected (see below for rlike, not rlike, etc.)
+ $bugs_with_comment = array(0);
if (!empty($description)) {
- $bugs_with_comment = array(0);
foreach ($db->getAll('SELECT bug_id FROM '.TBL_COMMENT.' WHERE comment_text LIKE \'%'.$description.'%\'') as $row) {
$bugs_with_comment[] = $row['bug_id'];
}
|