Fixes for array ( calls, fixes for phan warning reports

Renamed all array ( to array( that where left over

Fixed various minor bugs for phan level 0 reporting
This commit is contained in:
Clemens Schwaighofer
2019-09-20 13:15:09 +09:00
parent ef1df6f171
commit 63bcdc0eff
10 changed files with 86 additions and 50 deletions

View File

@@ -358,7 +358,7 @@ class PgSQL
$this->last_error_query = '';
$cursor = pg_get_result($this->dbh);
}
if (pg_result_error($cursor)) {
if ($cursor && pg_result_error($cursor)) {
return "<span style=\"color: red;\"><b>-PostgreSQL-Error-></b> ".pg_result_error($cursor)."</span><br>";
} else {
return '';