Skip to content

Instantly share code, notes, and snippets.

@polymorphm
Created September 30, 2011 11:43
Show Gist options
  • Save polymorphm/1253521 to your computer and use it in GitHub Desktop.
Save polymorphm/1253521 to your computer and use it in GitHub Desktop.
From e47739defe12b716dc03674faa4b8e351d512504 Mon Sep 17 00:00:00 2001
From: Andrej A Antonov <polymorphm@gmail.com>
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