diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 02:50:07 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 02:50:07 +0000 |
commit | 0b055835fdecd9e560784ee23afa480328d8e742 (patch) | |
tree | f67f194e23167ae38b02e1dd35bee34a70078bf0 | |
parent | acdc724fc83052bced312c0d09d76166305e1729 (diff) |
Remove commented code
Correct unbalanced brackets
-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); |