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

Missing variable declaration in eznotificationtransport.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.1.4, 4.2.0, 4.3.0, 4.4.0alpha4, 4.4.0alpha5
    • Fix Version/s: 4.4.0beta1
    • Component/s: Notifications
    • Labels:
      None

      Description

      In line 84 of eznotificationtransport.php there is an check if variable $impl === null.
      But this variable will only be declared before if an other statement is true ( if ( $fetchInstance ) ).

      So add to line 49 a base declaration to prevent errors:

      static function instance( $transport = false, $forceNewInstance = false )
          {
      ->    $impl = null;
              $ini = eZINI::instance( 'notification.ini' );
      

        Attachments

          Activity

            People

            Assignee:
            bd Bertrand Dunogier
            Reporter:
            luckylefti Disabled User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: