Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25456

ezpublish_legacy: eZPersistentObject $this->$def["functions"][$attr]();

    XMLWordPrintable

Details

    Description

      I think i found an syntax error in eZPersistentObject

      https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/classes/ezpersistentobject.php#L1342

      this code
      if ( isset( $def["functions"][$attr] ) )
      {
      return $this->$def["functions"][$attr]();
      }
      should be

      if ( isset( $def["functions"][$attr] ) )
      {
      return $def["functions"][$attr]();
      }

      I don't know if this code is used in any case.
      But i think this code could not work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: