From d0aa3992f529952c99bf253ab0405215bdcfd8ca Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 22 Jul 2014 13:09:03 +0200 Subject: [PATCH] Fixed check in PHP < 5.5 --- .../lib/system/package/PackageInstallationScheduler.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php index a84266dcbd..19416dabcc 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php @@ -265,7 +265,8 @@ class PackageInstallationScheduler { // check install instructions if ($validateInstallInstructions) { - if (empty($archive->getInstallInstructions())) { + $installInstructions = $archive->getInstallInstructions(); + if (empty($installInstructions)) { throw new SystemException("Package '" . $archive->getLocalizedPackageInfo('packageName') . "' (" . $archive->getPackageInfo('name') . ") does not contain valid installation instructions."); } } -- 2.20.1