From ed437e978a17174dc01c5d3da75a09a659748eb6 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 24 Apr 2017 21:18:30 +0000 Subject: [PATCH] Code cleanup --- include/dba.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } -- 2.39.5