diff options
-rw-r--r-- | core/controllers/scaffold.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php index bb56edf7..64d9000d 100644 --- a/core/controllers/scaffold.php +++ b/core/controllers/scaffold.php @@ -511,7 +511,7 @@ class Scaffold_Controller extends Template_Controller { $db = Database::instance(); $db->query("TRUNCATE `sessions`"); $db->query("TRUNCATE `logs`"); - $db->query("UPDATE `users` SET `password` = '' WHERE `id` = 2"); + $db->update("users", array("password" => ""), array("id" => 2)); $dbconfig = Kohana::config('database.default'); $dbconfig = $dbconfig["connection"]; |