diff options
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -439,6 +439,11 @@ self::$_query_log[$connection_name] = array(); } + // Strip out any non-integer indexes from the parameters + foreach($parameters as $key => $value) { + if (!is_int($key)) unset($parameters[$key]); + } + if (count($parameters) > 0) { // Escape the parameters $parameters = array_map(array(self::get_db($connection_name), 'quote'), $parameters); |