Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AR-General committed Mar 4, 2016
1 parent 16dbe7d commit e2314f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/models/mvc_database_adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ public function get_where_sql_clauses($conditions, $options=array()) {

if(in_array($value, $functions) || is_null($value)){
if((is_null($value) || $value === 'NULL')){
if(trim($operator) == "=")
if(trim($operator) == "="){
$operator = " IS ";
else if(trim($operator) == "!=")
}
else if(trim($operator) == "!="){
$operator = " IS NOT ";
}
$value = "NULL";
}
$sql_clauses[] = $this->escape($key).$operator.$value;
Expand Down

0 comments on commit e2314f4

Please sign in to comment.