From c76e5dd0bdc0e3bb7292a533568545ba0922999e Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sun, 3 Jun 2007 21:34:21 +0000 Subject: [PATCH] - fix logic (goto is a gift, I should use it :) --- ext/zip/php_zip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.50.1