Fixed the false positive errors with some SQL querys return empty data.

This commit is contained in:
mdtrooper 2015-05-29 15:23:52 +02:00
parent 4a36d18fe8
commit 2aa7f0994d
1 changed files with 5 additions and 0 deletions

View File

@ -64,6 +64,10 @@ function dbmanager_query ($sql, &$error) {
$backtrace = debug_backtrace();
$error = db_get_last_error();
if (empty($error)) {
return "Empty";
}
return false;
}
@ -147,6 +151,7 @@ function dbmgr_extension_main () {
}
echo "<div style='overflow: auto;'>";
$table = new stdClass();
$table->width = '90%';
$table->class = 'dbmanager';
$table->head = array_keys ($result[0]);