Fixed check in PHP < 5.5
authorAlexander Ebert <ebert@woltlab.com>
Tue, 22 Jul 2014 11:09:03 +0000 (13:09 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 22 Jul 2014 11:09:03 +0000 (13:09 +0200)
wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php

index a84266dcbd78cc14450fbceb4935ed86f6e25d2d..19416dabcc17f251514209c7633dbd59506b52c6 100644 (file)
@@ -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.");
                                }
                        }