diff --git a/core/MY_Model.php b/core/MY_Model.php index 05add98..3998b2f 100644 --- a/core/MY_Model.php +++ b/core/MY_Model.php @@ -513,7 +513,13 @@ function dropdown() { $args = func_get_args(); - if(count($args) == 2) + if(count($args) == 3) + { + list($key, $value, $where) = $args; + + $this->_set_where($where); + } + else if(count($args) == 2) { list($key, $value) = $args; }