From acdc724fc83052bced312c0d09d76166305e1729 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 27 Feb 2009 00:34:50 +0000 Subject: Continue the journey of replacing raw sql with ORM or Database method calls (Ticket #68) --- modules/user/helpers/user_installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index 806ed14b..e62470e0 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -74,7 +74,7 @@ class user_installer { $admin->save(); // Let the admin own everything - $db->query("UPDATE `items` SET `owner_id` = {$admin->id} WHERE `owner_id` IS NULL"); + $db->update("items", array("owner_id" => $admin->id), array("owner_id" => "IS NULL"); module::set_version("user", 1); $root = ORM::factory("item", 1); -- cgit v1.2.3