Code cleanup
This commit is contained in:
parent
82f13441bc
commit
ed437e978a
1 changed files with 1 additions and 5 deletions
|
@ -462,8 +462,6 @@ class dba {
|
||||||
|
|
||||||
$sql = self::$dbo->any_value_fallback($sql);
|
$sql = self::$dbo->any_value_fallback($sql);
|
||||||
|
|
||||||
$orig_sql = $sql;
|
|
||||||
|
|
||||||
if (x($a->config,'system') && x($a->config['system'], 'db_callstack')) {
|
if (x($a->config,'system') && x($a->config['system'], 'db_callstack')) {
|
||||||
$sql = "/*".$a->callstack()." */ ".$sql;
|
$sql = "/*".$a->callstack()." */ ".$sql;
|
||||||
}
|
}
|
||||||
|
@ -676,9 +674,7 @@ class dba {
|
||||||
|
|
||||||
call_user_func_array(array($stmt, 'bind_result'), $cols);
|
call_user_func_array(array($stmt, 'bind_result'), $cols);
|
||||||
|
|
||||||
$success = $stmt->fetch();
|
if (!$stmt->fetch()) {
|
||||||
|
|
||||||
if (!$success) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue