diff options
-rw-r--r-- | core/tests/Core_Installer_Test.php | 3 | ||||
-rw-r--r-- | modules/user/helpers/user_installer.php | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/core/tests/Core_Installer_Test.php b/core/tests/Core_Installer_Test.php index 89fe1f8e..79ae4a0c 100644 --- a/core/tests/Core_Installer_Test.php +++ b/core/tests/Core_Installer_Test.php @@ -37,9 +37,6 @@ class Core_Installer_Test extends Unit_Test_Case { } public function install_creates_root_item_test() { - //$max_right = - // Database::instance()->query("SELECT MAX(`right`) AS `right` FROM items")->current()->right; - $max_right = ORM::factory("item") ->select("MAX(`right`) AS `right`") ->find()->right; diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index e62470e0..f293e109 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->update("items", array("owner_id" => $admin->id), array("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); |