summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-10-22 01:49:32 +0100
committerJamie Matthews <[email protected]>2010-10-22 01:49:32 +0100
commit37cb37a1c310a60dc8ba4329e03d6ae7d8bf6fb0 (patch)
treefb8051ac5240f4aea3b7d5653e004a1a0cf8f836 /idiorm.php
parent6b7fdc6e0d4516c81b2506a1b16a78a1e31ede3c (diff)
Ensure delete method calls _log_query correctly
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/idiorm.php b/idiorm.php
index bcaed7b..7e7a70b 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -777,10 +777,11 @@
$this->_quote_identifier($this->_get_id_column_name()),
"= ?",
));
+ $params = array($this->id());
self::_setup_db();
- self::_log_query();
+ self::_log_query($query, $params);
$statement = self::$_db->prepare($query);
- return $statement->execute(array($this->id()));
+ return $statement->execute($params);
}
// --------------------- //