Fixed missing module setting check
authorMarcel Werk <burntime@woltlab.com>
Tue, 18 Apr 2017 16:29:04 +0000 (18:29 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 18 Apr 2017 16:29:04 +0000 (18:29 +0200)
wcfsetup/install/files/lib/data/user/UserProfile.class.php

index 21fe9c19bd01456c2fc685768ad02761aa39d5b3..405e7c7fc6fe0ddddb95bb426624ebd06f777a36 100644 (file)
@@ -709,6 +709,7 @@ class UserProfile extends DatabaseObjectDecorator implements ITitledLinkObject {
         * @return      boolean
         */
        public function showSignature() {
+               if (!MODULE_USER_SIGNATURE) return false;
                if (!$this->signature) return false;
                if ($this->disableSignature) return false;
                if (WCF::getUser()->userID && !WCF::getUser()->showSignature) return false;