diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-07 13:51:23 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-07 13:51:23 +0200 |
commit | 2193f6a1301edcb62de6f0cf338acccdbf5ec2f1 (patch) | |
tree | 61ccde7d0088c2a5c7274ccdaa2e2fcd91104fed /plugins/password/drivers/sql.php | |
parent | ef1d6525c2333794d954ccce33de1bcd533f85c8 (diff) |
Avoid unused local variables
Diffstat (limited to 'plugins/password/drivers/sql.php')
-rw-r--r-- | plugins/password/drivers/sql.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/password/drivers/sql.php b/plugins/password/drivers/sql.php index de9ea0a3f..7a51dfe44 100644 --- a/plugins/password/drivers/sql.php +++ b/plugins/password/drivers/sql.php @@ -34,8 +34,9 @@ class rcube_sql_password $db = $rcmail->get_dbh(); } - if ($err = $db->is_error()) + if ($db->is_error()) { return PASSWORD_ERROR; + } // crypted password if (strpos($sql, '%c') !== FALSE) { @@ -184,7 +185,7 @@ class rcube_sql_password if (!$db->is_error()) { if (strtolower(substr(trim($sql),0,6)) == 'select') { - if ($result = $db->fetch_array($res)) + if ($db->fetch_array($res)) return PASSWORD_SUCCESS; } else { // This is the good case: 1 row updated |