From: Alexander Ebert Date: Tue, 22 Jul 2014 11:09:03 +0000 (+0200) Subject: Fixed check in PHP < 5.5 X-Git-Tag: 2.1.0_Alpha_1~548^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0aa3992f529952c99bf253ab0405215bdcfd8ca;p=GitHub%2FWoltLab%2FWCF.git Fixed check in PHP < 5.5 --- 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."); } }