]> granicus.if.org Git - php/commitdiff
- MFB: fix logic
authorPierre Joye <pajoye@php.net>
Sun, 3 Jun 2007 21:35:39 +0000 (21:35 +0000)
committerPierre Joye <pajoye@php.net>
Sun, 3 Jun 2007 21:35:39 +0000 (21:35 +0000)
ext/zip/php_zip.c

index ed9a22ad52002072c3d8e2e3daed05f0018d2be6..1f384e2de8c181134243ed0c6f3ca640f07421a9 100644 (file)
@@ -1036,8 +1036,9 @@ static ZIPARCHIVE_METHOD(addEmptyDir)
 
                if (zip_add_dir(intern, (const char *)s) == -1) {
                        RETVAL_FALSE;
+               } else {
+                       RETVAL_TRUE;
                }
-               RETVAL_TRUE;
        }
 
        if (s != dirname) {