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

wrong use of array_intersect() in ezsubtreenotificationrule.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.1.4, 4.2.0
    • Fix Version/s: 4.3.0beta2
    • Component/s: Notifications
    • Labels:
      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

            Assignee:
            qwix Jérôme Renard
            Reporter:
            luckylefti Disabled User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: