Fix exception in `HeaderUtil` during setup
authorMatthias Schmidt <gravatronics@live.com>
Wed, 28 Sep 2016 19:24:59 +0000 (21:24 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 28 Sep 2016 19:24:59 +0000 (21:24 +0200)
wcfsetup/install/files/lib/util/HeaderUtil.class.php

index e7671f0d238ef71164775aa46fea3711bc73f980..4985bd5acbc4f634fdc4b16bf2bca312faa62a65 100644 (file)
@@ -55,7 +55,7 @@ final class HeaderUtil {
                @header('Content-Type: text/html; charset=UTF-8');
                
                // send no cache headers
-               if (!WCF::getSession()->spiderID) {
+               if (PACKAGE_ID && !WCF::getSession()->spiderID) {
                        self::sendNoCacheHeaders();
                }