mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Avoid warning
This commit is contained in:
@@ -150,7 +150,7 @@ if (!defined("DRIVER")) {
|
||||
*/
|
||||
function result($query, $field = 0) {
|
||||
$result = $this->query($query);
|
||||
if (!$result) {
|
||||
if (!$result || !$result->num_rows) {
|
||||
return false;
|
||||
}
|
||||
return mysql_result($result->_result, 0, $field);
|
||||
|
@@ -80,7 +80,7 @@ if (isset($_GET["pgsql"])) {
|
||||
|
||||
function result($query, $field = 0) {
|
||||
$result = $this->query($query);
|
||||
if (!$result) {
|
||||
if (!$result || !$result->num_rows) {
|
||||
return false;
|
||||
}
|
||||
return pg_fetch_result($result->_result, 0, $field);
|
||||
|
Reference in New Issue
Block a user