Permalink
Browse files

remove unused variable and simplify code

  • Loading branch information...
1 parent 049f1a5 commit 1dbf02bb2d610c3a75c48d9072d40575545cb025 @ruleant ruleant committed Jan 25, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 user_password.php
View
@@ -174,10 +174,9 @@ function PMA_ChangePassUrlParamsAndSubmitQuery(
$local_query = 'SET password = ' . (($password == '')
? '\'\''
: $hashing_function . '(\'' . PMA_Util::sqlAddSlashes($password) . '\')');
- $result = @PMA_DBI_try_query($local_query)
- or PMA_Util::mysqlDie(
- PMA_DBI_getError(), $sql_query, false, $err_url
- );
+ if (! @PMA_DBI_try_query($local_query)) {
+ PMA_Util::mysqlDie(PMA_DBI_getError(), $sql_query, false, $err_url);
+ }
}
/**

0 comments on commit 1dbf02b

Please sign in to comment.