Fix return values of showNotice methods for guests
authorMatthias Schmidt <gravatronics@live.com>
Sat, 24 May 2014 10:57:11 +0000 (12:57 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 24 May 2014 10:57:11 +0000 (12:57 +0200)
wcfsetup/install/files/lib/system/condition/UserEmailCondition.class.php
wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php
wcfsetup/install/files/lib/system/condition/UserRegistrationDateIntervalCondition.class.php
wcfsetup/install/files/lib/system/condition/UserStateCondition.class.php

index f441422e67f04b2c52f9a7a9a8942159850de4a9..3577271bbf1818d74b965f1c849acaaa64bdbb87 100644 (file)
@@ -44,7 +44,7 @@ class UserEmailCondition extends AbstractTextCondition implements INoticeConditi
         * @see \wcf\system\condition\INoticeCondition::showNotice()
         */
        public function showNotice(Condition $condition) {
-               if (!WCF::getUser()->userID) return;
+               if (!WCF::getUser()->userID) return false;
                
                return $this->checkUser($condition, WCF::getUser());
        }
index 97070225b711d2ff44e4af87738831b039dfb801..3d49620c3cb4b589f1806f54e567b81ff16441ad 100644 (file)
@@ -154,7 +154,7 @@ HTML;
         * @see \wcf\system\condition\INoticeCondition::showNotice()
         */
        public function showNotice(Condition $condition) {
-               if (!WCF::getUser()->userID) return;
+               if (!WCF::getUser()->userID) return false;
                
                return $this->checkUser($condition, WCF::getUser());
        }
index 0d41d86d5082640dae6ff468c39e72fd1c643227..670683f1d444c1a699a9089dcbdafc8ec3fdaf51 100644 (file)
@@ -91,7 +91,7 @@ class UserRegistrationDateIntervalCondition extends AbstractIntegerCondition imp
         * @see \wcf\system\condition\INoticeCondition::showNotice()
         */
        public function showNotice(Condition $condition) {
-               if (!WCF::getUser()->userID) return;
+               if (!WCF::getUser()->userID) return false;
                
                return $this->checkUser($condition, WCF::getUser());
        }
index e2cfffab691db1dd78a80f4b3f3719375fd30808..56d3224777aa7ae6045e7fc48fa9190c7530e20a 100644 (file)
@@ -196,7 +196,7 @@ HTML;
         * @see \wcf\system\condition\INoticeCondition::showNotice()
         */
        public function showNotice(Condition $condition) {
-               if (!WCF::getUser()->userID) return;
+               if (!WCF::getUser()->userID) return false;
                
                return $this->checkUser($condition, WCF::getUser());
        }