Avoid warning
This commit is contained in:
parent
4cab347f92
commit
efd7b901a7
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue