NULL -> null
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ function toInt($val, $force=false){
|
||||
if(is_numeric($val)){
|
||||
return intval($val);//
|
||||
}
|
||||
if($val === 'NULL' || $val === 'null'){
|
||||
if(strtolower($val) === 'null'){
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user