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

Warning in eznotificationtransport.php when $transportImpl is null

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.4, 4.2.0rc1
    • 4.1.3, 4.2.0alpha1
    • Cronjobs
    • None

    Description

      Got warning on this line the other day when I was running cronjobs, here's a patch:

      Index: kernel/classes/notification/eznotificationtransport.php
      ===================================================================
      --- kernel/classes/notification/eznotificationtransport.php	(revision 23941)
      +++ kernel/classes/notification/eznotificationtransport.php	(working copy)
      @@ -61,7 +61,7 @@
                   $transport = $ini->variable( 'TransportSettings', 'DefaultTransport' );
               }
               $transportImpl =& $GLOBALS['eZNotificationTransportGlobalInstance_' . $transport ];
      -        $class = strtolower( get_class( $transportImpl ) );
      +        $class = $transportImpl !== null ? strtolower( get_class( $transportImpl ) ) : '';
       
               $fetchInstance = false;
               if ( !preg_match( '/.*?transport/', $class ) )
      

      Attachments

        Activity

          People

            oms Ole Marius Smestad
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: