Remove redundant check

This was already checked directly above.
This commit is contained in:
Nikita Popov 2020-09-21 15:59:44 +02:00
parent 3e33e1e86d
commit 68a907569c

View file

@ -3410,11 +3410,6 @@ static void php_pgsql_escape_internal(INTERNAL_FUNCTION_PARAMETERS, int escape_l
RETURN_THROWS();
}
if (pgsql == NULL) {
php_error_docref(NULL, E_WARNING,"Cannot get pgsql link");
RETURN_FALSE;
}
if (escape_literal) {
tmp = PQescapeLiteral(pgsql, from, (size_t)from_len);
} else {