Properly initialize arrays with 0 for IN conditions
This commit is contained in:
parent
85978a4d18
commit
160d11b89b
@ -477,7 +477,7 @@ class IDF_Views_Issue
|
|||||||
// and other things in the next round
|
// and other things in the next round
|
||||||
$results = IDF_Search::mySearch($query, $prj, 'IDF_Issue');
|
$results = IDF_Search::mySearch($query, $prj, 'IDF_Issue');
|
||||||
|
|
||||||
$issue_ids = array();
|
$issue_ids = array(0);
|
||||||
foreach ($results as $result) {
|
foreach ($results as $result) {
|
||||||
$issue_ids[] = $result['model_id'];
|
$issue_ids[] = $result['model_id'];
|
||||||
}
|
}
|
||||||
@ -495,7 +495,7 @@ class IDF_Views_Issue
|
|||||||
// we unfortunately loose the original sort order,
|
// we unfortunately loose the original sort order,
|
||||||
// so we manually have to apply it here again
|
// so we manually have to apply it here again
|
||||||
$sorted_issues = new ArrayObject();
|
$sorted_issues = new ArrayObject();
|
||||||
$filtered_issue_ids = array();
|
$filtered_issue_ids = array(0);
|
||||||
foreach ($issue_ids as $issue_id) {
|
foreach ($issue_ids as $issue_id) {
|
||||||
foreach ($issues as $issue) {
|
foreach ($issues as $issue) {
|
||||||
if ($issue->id != $issue_id)
|
if ($issue->id != $issue_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user