Data\SimpleQuery: don't fail on missing columns...

...for now
This commit is contained in:
Thomas Gelf 2014-11-16 18:24:16 +01:00
parent c0343a0dae
commit 40c4562fe4
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class SimpleQuery implements QueryInterface, Queryable
$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++);