From 160d11b89be35086ae0e132c4a1f090ad3ceb767 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Tue, 4 Oct 2011 00:37:28 +0200 Subject: [PATCH] Properly initialize arrays with 0 for IN conditions --- src/IDF/Views/Issue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 03850dd..854b9b9 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -477,7 +477,7 @@ class IDF_Views_Issue // and other things in the next round $results = IDF_Search::mySearch($query, $prj, 'IDF_Issue'); - $issue_ids = array(); + $issue_ids = array(0); foreach ($results as $result) { $issue_ids[] = $result['model_id']; } @@ -495,7 +495,7 @@ class IDF_Views_Issue // we unfortunately loose the original sort order, // so we manually have to apply it here again $sorted_issues = new ArrayObject(); - $filtered_issue_ids = array(); + $filtered_issue_ids = array(0); foreach ($issue_ids as $issue_id) { foreach ($issues as $issue) { if ($issue->id != $issue_id)