Fixed the false positive errors with some SQL querys return empty data.
This commit is contained in:
parent
4a36d18fe8
commit
2aa7f0994d
|
@ -64,6 +64,10 @@ function dbmanager_query ($sql, &$error) {
|
||||||
$backtrace = debug_backtrace();
|
$backtrace = debug_backtrace();
|
||||||
$error = db_get_last_error();
|
$error = db_get_last_error();
|
||||||
|
|
||||||
|
if (empty($error)) {
|
||||||
|
return "Empty";
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,6 +151,7 @@ function dbmgr_extension_main () {
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<div style='overflow: auto;'>";
|
echo "<div style='overflow: auto;'>";
|
||||||
|
$table = new stdClass();
|
||||||
$table->width = '90%';
|
$table->width = '90%';
|
||||||
$table->class = 'dbmanager';
|
$table->class = 'dbmanager';
|
||||||
$table->head = array_keys ($result[0]);
|
$table->head = array_keys ($result[0]);
|
||||||
|
|
Loading…
Reference in New Issue