]> granicus.if.org Git - php/commitdiff
relax the check
authorAndrey Hristov <andrey@php.net>
Fri, 22 Feb 2013 12:50:04 +0000 (13:50 +0100)
committerAndrey Hristov <andrey@php.net>
Fri, 22 Feb 2013 12:50:04 +0000 (13:50 +0100)
ext/mysqli/mysqli_nonapi.c

index e7434491729ebd2856a1aea6e123394e78000fcc..398c15919b4f7c713fb89641bbd02a509036514e 100644 (file)
@@ -1111,7 +1111,7 @@ PHP_FUNCTION(mysqli_begin_transaction)
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid value for parameter flags (%ld)", flags);
                err = TRUE;
        }
-       if (!name || !name_len) {
+       if (!name_len) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Savepoint name cannot be empty");
                err = TRUE;
        }