Skip to content

Commit

Permalink
Data\SimpleQuery: don't fail on missing columns...
Browse files Browse the repository at this point in the history
...for now
  • Loading branch information
Thomas-Gelf committed Nov 16, 2014
1 parent c0343a0 commit 40c4562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Data/SimpleQuery.php
Expand Up @@ -210,7 +210,7 @@ public function compare($a, $b, $col_num = 0)
$dir = $this->order[$col_num][1];
// TODO: throw Exception if column is missing
//$res = strnatcmp(strtolower($a->$col), strtolower($b->$col));
$res = strcmp(strtolower($a->$col), strtolower($b->$col));
$res = @strcmp(strtolower($a->$col), strtolower($b->$col));
if ($res === 0) {
// return $this->compare($a, $b, $col_num++);

Expand Down

0 comments on commit 40c4562

Please sign in to comment.