From fcc0fe5c45969560117f2878fda1761d0b16f6de Mon Sep 17 00:00:00 2001 From: Andreas Boehler Date: Thu, 6 Dec 2012 14:28:16 +0100 Subject: [PATCH] Fix a few bugs introduced by last change... --- user_sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_sql.php b/user_sql.php index 79b2cc8..297ae26 100644 --- a/user_sql.php +++ b/user_sql.php @@ -81,12 +81,12 @@ class OC_USER_SQL extends OC_User_Backend implements OC_User_Interface { public function setPassword ( $uid, $password ) { // Update the user's password - this might affect other services, that user the same database, as well - if(!this->db_conn) + if(!$this->db_conn) { return false; } - $query = "UPDATE $this->sql_table SET $this->sql_column_password = ENCRYPT('$password') WHERE $sql_column_username = '$uid'"; + $query = "UPDATE $this->sql_table SET $this->sql_column_password = ENCRYPT('$password') WHERE $this->sql_column_username = '$uid'"; $result = $this->db->prepare($query); if(!$result->execute()) {