From: Michael Date: Mon, 24 Apr 2017 21:18:30 +0000 (+0000) Subject: Code cleanup X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed437e978a17174dc01c5d3da75a09a659748eb6;p=friendica.git Code cleanup --- diff --git a/include/dba.php b/include/dba.php index cf1c962b1d..5760d782ce 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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; }