summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-06 21:35:04 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-06 21:35:04 -0800
commit2ff84b092d0b9d8ca61b313d2aa5d7941f3f8711 (patch)
tree761df31ee598e6584fb2af4365e36f29bafa5c88
parentb129ff7cfa1690c1af602035ebfc0e374b9066f1 (diff)
Update database query.
-rw-r--r--modules/g2_import/helpers/g2_import_event.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/g2_import/helpers/g2_import_event.php b/modules/g2_import/helpers/g2_import_event.php
index 609e1a45..02a2126d 100644
--- a/modules/g2_import/helpers/g2_import_event.php
+++ b/modules/g2_import/helpers/g2_import_event.php
@@ -19,7 +19,10 @@
*/
class g2_import_event_Core {
static function item_deleted($item) {
- Database::instance()->delete("g2_maps", array("g3_id" => $item->id));
+ db::build()
+ ->delete("g2_maps")
+ ->where("g3_id", "=", $item->id)
+ ->execute();
}
static function item_created($item) {