Created
September 30, 2011 11:43
-
-
Save polymorphm/1253521 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e47739defe12b716dc03674faa4b8e351d512504 Mon Sep 17 00:00:00 2001 | |
From: Andrej A Antonov <[email protected]> | |
Date: Fri, 30 Sep 2011 14:50:48 +0400 | |
Subject: [PATCH] fixed zip_open() fail actions | |
--- | |
libraries/joomla/filesystem/archive/zip.php | 5 +++++ | |
1 files changed, 5 insertions(+), 0 deletions(-) | |
diff --git a/libraries/joomla/filesystem/archive/zip.php b/libraries/joomla/filesystem/archive/zip.php | |
index 9b6da18..56959ab 100644 | |
--- a/libraries/joomla/filesystem/archive/zip.php | |
+++ b/libraries/joomla/filesystem/archive/zip.php | |
@@ -293,6 +293,11 @@ class JArchiveZip extends JObject | |
@zip_close($zip); | |
} | |
+ else { | |
+ $this->set('error.message', JText::_('JLIB_FILESYSTEM_ZIP_UNABLE_TO_OPEN_ARCHIVE')); | |
+ | |
+ return false; | |
+ } | |
} | |
else | |
{ | |
-- | |
1.7.4.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment