Code cleanup
This commit is contained in:
parent
82f13441bc
commit
ed437e978a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue