]> granicus.if.org Git - php/commitdiff
remove the expression parts, which are always true
authorAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 09:37:34 +0000 (11:37 +0200)
committerAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 09:38:23 +0000 (11:38 +0200)
ext/pgsql/pgsql.c

index 4e1ce50f1dfbc9e95089c48deb7c4fc0e12b39d1..e3f64e0ed08a518b4fb0c61c26c9f843f434c0ae 100644 (file)
@@ -1527,7 +1527,7 @@ PHP_FUNCTION(pg_connect_poll)
                return;
        }
 
-       if (pgsql_link == NULL && id == -1) {
+       if (pgsql_link == NULL) {
                RETURN_FALSE;
        }
 
@@ -2314,7 +2314,7 @@ PHP_FUNCTION(pg_last_notice)
                return;
        }
 
-       if (pgsql_link == NULL && id == -1) {
+       if (pgsql_link == NULL) {
                RETURN_FALSE;
        }
 
@@ -4856,7 +4856,7 @@ PHP_FUNCTION(pg_send_query_params)
                return;
        }
 
-       if (pgsql_link == NULL && id == -1) {
+       if (pgsql_link == NULL) {
                RETURN_FALSE;
        }
 
@@ -4961,7 +4961,7 @@ PHP_FUNCTION(pg_send_prepare)
                return;
        }
 
-       if (pgsql_link == NULL && id == -1) {
+       if (pgsql_link == NULL) {
                RETURN_FALSE;
        }
 
@@ -5039,7 +5039,7 @@ PHP_FUNCTION(pg_send_execute)
                return;
        }
 
-       if (pgsql_link == NULL && id == -1) {
+       if (pgsql_link == NULL) {
                RETURN_FALSE;
        }