Skip to content

Commit 739900a

Browse files
committed
Initialize state_out eralier, for case with no actions, #6591
1 parent 86c6e7e commit 739900a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/plugins.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ function raiseAction($action_name, $data, $return_data = false) {
145145
if($this->debug) $app->log('Raised action: '.$action_name, LOGLEVEL_DEBUG);
146146

147147
$result = '';
148+
$state_out = 'ok';
148149

149150
if(is_array($actions)) {
150151
foreach($actions as $action) {
151152
$plugin_name = $action['plugin'];
152153
$function_name = $action['function'];
153-
$state_out = 'ok';
154154
//* Call the processing function of the plugin
155155
$app->log("Calling function '$function_name' from plugin '$plugin_name' raised by action '$action_name'.", LOGLEVEL_DEBUG);
156156
$state = call_user_func(array($app->loaded_plugins[$plugin_name], $function_name), $action_name, $data);

0 commit comments

Comments
 (0)