Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2022-08-13 09:58:52 +0300
committerAleksander Machniak <alec@alec.pl>2022-08-13 09:58:52 +0300
commitbae45d572842d7f9846638bc2b2f76f327bf7aae (patch)
tree612e50b0be9224dedfcfa74694904204cec557ff
parentc56d7342feee43c28701679f08cf82626179f72c (diff)
Always define 'abort' arg in rcube_dummy_plugin_api handler (#8669)
-rw-r--r--program/lib/Roundcube/rcube.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php
index ea60de842..dfdffc9af 100644
--- a/program/lib/Roundcube/rcube.php
+++ b/program/lib/Roundcube/rcube.php
@@ -1855,6 +1855,10 @@ class rcube_dummy_plugin_api
*/
public function exec_hook($hook, $args = [])
{
- return $args;
+ if (!is_array($args)) {
+ $args = ['arg' => $args];
+ }
+
+ return $args += ['abort' => false];
}
}