summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-27 00:34:50 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-27 00:34:50 +0000
commitacdc724fc83052bced312c0d09d76166305e1729 (patch)
tree10bdb905dc5250e76d6100ac492ec346535b231b
parent2b1f68a6546b7a2743efaca2f224c1de90e17d1d (diff)
Continue the journey of replacing raw sql with ORM or Database method
calls (Ticket #68)
-rw-r--r--modules/user/helpers/user_installer.php2
1 files changed, 1 insertions, 1 deletions
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);