]> git.mxchange.org Git - friendica.git/commitdiff
Code cleanup
authorMichael <heluecht@pirati.ca>
Mon, 24 Apr 2017 21:18:30 +0000 (21:18 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 Apr 2017 21:18:30 +0000 (21:18 +0000)
include/dba.php

index cf1c962b1dd367909be505d3b30907f5792d1d10..5760d782ce183448add88b375881e06636c7a409 100644 (file)
@@ -462,8 +462,6 @@ class dba {
 
                $sql = self::$dbo->any_value_fallback($sql);
 
-               $orig_sql = $sql;
-
                if (x($a->config,'system') && x($a->config['system'], 'db_callstack')) {
                        $sql = "/*".$a->callstack()." */ ".$sql;
                }
@@ -676,9 +674,7 @@ class dba {
 
                                call_user_func_array(array($stmt, 'bind_result'), $cols);
 
-                               $success = $stmt->fetch();
-
-                               if (!$success) {
+                               if (!$stmt->fetch()) {
                                        return false;
                                }