Skip to content

Commit

Permalink
Update database query.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 7, 2009
1 parent b129ff7 commit 2ff84b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/g2_import/helpers/g2_import_event.php
Expand Up @@ -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) {
Expand Down

0 comments on commit 2ff84b0

Please sign in to comment.