From a247bd85ce887d27191292b2610fd3219cc319cf Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 7 Jun 2017 17:19:50 +0100 Subject: [PATCH] fix use-by-ref warning --- .../event/ezworkflowenginehook/ezworkflowenginehooktype.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ezpublish_legacy/ezworkflowenginebridge/eventtypes/event/ezworkflowenginehook/ezworkflowenginehooktype.php b/ezpublish_legacy/ezworkflowenginebridge/eventtypes/event/ezworkflowenginehook/ezworkflowenginehooktype.php index 59d5b7c..5437d9d 100644 --- a/ezpublish_legacy/ezworkflowenginebridge/eventtypes/event/ezworkflowenginehook/ezworkflowenginehooktype.php +++ b/ezpublish_legacy/ezworkflowenginebridge/eventtypes/event/ezworkflowenginehook/ezworkflowenginehooktype.php @@ -38,7 +38,8 @@ public function __construct() public function execute( $process, $event ) { $parameters = $process->attribute( 'parameter_list' ); - $triggerName = reset( explode( '_', $parameters['trigger_name'], 2 ) ); + $tmp = explode( '_', $parameters['trigger_name'], 2 ); + $triggerName = reset( $tmp ); $operationName = $parameters['module_name'] . '_' . $parameters['module_function']; $signalName = $this->getsignalName( $triggerName, $operationName );