diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-13 06:57:16 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-13 06:57:16 +0000 |
commit | 2295d748797c214878d2620be4251d2d7fa05192 (patch) | |
tree | 868cd490662fc30ed6f64fb5d187c75e8cd3e01b /core/helpers/module.php | |
parent | 7ea06ccbcb5e38d4ffddad9a561cde546b1acd41 (diff) |
Continue to replace raw sql with Database method calls. As per ticket #68
Diffstat (limited to 'core/helpers/module.php')
-rw-r--r-- | core/helpers/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php index 1e813006..23e90a3c 100644 --- a/core/helpers/module.php +++ b/core/helpers/module.php @@ -62,7 +62,7 @@ class module_Core { $module = ORM::factory("module")->where("name", $module_name)->find(); if ($module->loaded) { $db = Database::instance(); - $db->query("DELETE FROM `graphics_rules` WHERE module_name = '{$module->name}';"); + $db->delete("graphics_rules", array("module_name" => $module->name)); $module->delete(); // We could delete the module vars here too, but it's nice to leave them around in case the |