summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/idiorm.php b/idiorm.php
index 6b021ad..603bcb2 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -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);