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
Issue Links
- relates to
-
EZP-15433 Warning: get_class() expects parameter 1 to be object, null given in kernel/classes/ezworkflowprocess.php on line 299
- Closed