From: Pierre Joye Date: Sun, 3 Jun 2007 21:34:21 +0000 (+0000) Subject: - fix logic (goto is a gift, I should use it :) X-Git-Tag: php-5.2.4RC1~439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c76e5dd0bdc0e3bb7292a533568545ba0922999e;p=php - fix logic (goto is a gift, I should use it :) --- diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 662513a6c8..a30201b272 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1025,8 +1025,9 @@ static ZIPARCHIVE_METHOD(addEmptyDir) if (zip_add_dir(intern, (const char *)s) == -1) { RETVAL_FALSE; + } else { + RETVAL_TRUE; } - RETVAL_TRUE; } if (s != dirname) {