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

wrong use of array_intersect() in ezsubtreenotificationrule.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.0beta2
    • 4.1.4, 4.2.0
    • Notifications
    • None

    Description

      On line 433 and 437 of ezsubtreenotificationrule.php there is a php function call array_intersect() which awaiting to arrays for comparison and determination of the intersection of both arrays.
      But in both cases it will be passed with a String (ownerID and contentobjectID -> I think attribute owner ID and contentobjectID could never be an array).
      This can not be work and smashes a php warning.

      Change to in_array instead.

      Attachments

        Activity

          People

            qwix qwix
            luckylefti luckylefti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: