From 1ba012db0e2b9b60899a666471326465bb7a9f93 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 9 Nov 2008 23:45:47 +0000 Subject: Chain away temporary variables --- modules/comment/helpers/comment_installer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/comment') diff --git a/modules/comment/helpers/comment_installer.php b/modules/comment/helpers/comment_installer.php index f128ed0b..7e47ce8f 100644 --- a/modules/comment/helpers/comment_installer.php +++ b/modules/comment/helpers/comment_installer.php @@ -54,7 +54,6 @@ class comment_installer { public static function uninstall() { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS `comments`;"); - $comment_module = ORM::factory("module")->where("name", "comment")->find(); - $comment_module->delete(); + ORM::factory("module")->where("name", "comment")->find()->delete(); } } -- cgit v1.2.3