Fork me on GitHub

Bug: PNObject::validate() - Please Fix  Bottom

  • Bug Fix - Too many semi-colons in check for $this->_objData

    From:

    Code

    /**
         * Generic function to validate an object
         *
         * @return Boolean indicating wether validation has passed or failed
         */

        function validate ()
        {
            if (!$this->_objValidation)
                return true;

            if (!$this->_objData);
                return false;

            Loader::loadClass ('ValidationUtil');
            $res1 = ValidationUtil::validateObjectPlain ($this->_objData, $this->_objValidation);
            $res2 = $this->validatePostProcess();

            return ($res1 && $res2);
        }


    To:

    Code

    /**
         * Generic function to validate an object
         *
         * @return Boolean indicating wether validation has passed or failed
         */

        function validate ()
        {
            if (!$this->_objValidation)
                return true;

            if (!$this->_objData)
                return false;

            Loader::loadClass ('ValidationUtil');
            $res1 = ValidationUtil::validateObjectPlain ($this->_objData, $this->_objValidation);
            $res2 = $this->validatePostProcess();

            return ($res1 && $res2);
        }
  • code tag ??

    The error is line 504 in pnobjlib/PNObject.class.php

    --
    Gilles...
  • jyanni,
    thx for reporting - in future please lock those problems into our bugtracker so they won't get lost in the forums.

    please check the next nightly build, especially *PNObject.class.php*

    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • 0 users

This list is based on users active over the last 60 minutes.