Bug fixes for not initialized array calls

This commit is contained in:
Clemens Schwaighofer
2020-05-29 06:30:53 +09:00
parent f694539a0b
commit a311552c56
3 changed files with 3 additions and 3 deletions

View File

@@ -311,7 +311,7 @@ class PgSQL
$q .= "AND indisprimary";
$cursor = $this->__dbQuery($q);
if ($cursor) {
return $this->__dbFetchArray($cursor)['column_name'];
return $this->__dbFetchArray($cursor)['column_name'] ?? false;
} else {
return false;
}