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

Missing variable declaration in eznotificationtransport.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0beta1
    • 4.1.4, 4.2.0, 4.3.0, 4.4.0alpha4, 4.4.0alpha5
    • Notifications
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: