We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41b1c06 + 3389025 commit 2a98e9cCopy full SHA for 2a98e9c
core/MY_Model.php
@@ -883,9 +883,17 @@ protected function _set_where($params)
883
{
884
$this->_database->where($params[0]);
885
}
886
+ else if(count($params) == 2)
887
+ {
888
+ $this->_database->where($params[0], $params[1]);
889
+ }
890
+ else if(count($params) == 3)
891
892
+ $this->_database->where($params[0], $params[1], $params[2]);
893
894
else
895
- $this->_database->where($params[0], $params[1]);
896
+ $this->_database->where($params);
897
898
899
@@ -897,4 +905,4 @@ protected function _return_type($multi = FALSE)
905
$method = ($multi) ? 'result' : 'row';
906
return $this->_temporary_return_type == 'array' ? $method . '_array' : $method;
907
900
-}
908
+}
0 commit comments