Filteres rewritten, birthday added, some fixes:
[shipsimu.git] / application / ship-simu / main / filter / goverment / class_ShipSimuGovermentPaysStartupHelpFilter.php
index 3d02ad9a5d843922f7e519f6177d9b69d1eef799..6917edcc2b5c2568ab393a6b7e8301645681d578 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class ShipSimuGovermentPaysStartupHelpFilter extends BaseFrameworkSystem implements Filterable {
+class ShipSimuGovermentPaysStartupHelpFilter extends BaseFilter implements Filterable {
        /**
         * Protected constructor
         *
@@ -30,10 +30,6 @@ class ShipSimuGovermentPaysStartupHelpFilter extends BaseFrameworkSystem impleme
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Clean up a little
-               $this->removeNumberFormaters();
-               $this->removeSystemArray();
        }
 
        /**
@@ -62,7 +58,7 @@ class ShipSimuGovermentPaysStartupHelpFilter extends BaseFrameworkSystem impleme
                $userInstance = Registry::getRegistry()->getInstance('user');
 
                // Now simply check for it
-               if (($userInstance instanceof ManageableMember) || ($userInstance->ifGovermentPaysStartupHelp() === false)) {
+               if ((!$userInstance instanceof ManageableMember) || ($userInstance->ifGovermentPaysStartupHelp() === false)) {
                        // Request is invalid
                        $requestInstance->requestIsValid(false);