diff options
author | Aleksander Machniak <alec@alec.pl> | 2022-08-13 09:58:52 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2022-08-13 09:58:52 +0300 |
commit | bae45d572842d7f9846638bc2b2f76f327bf7aae (patch) | |
tree | 612e50b0be9224dedfcfa74694904204cec557ff | |
parent | c56d7342feee43c28701679f08cf82626179f72c (diff) |
Always define 'abort' arg in rcube_dummy_plugin_api handler (#8669)
-rw-r--r-- | program/lib/Roundcube/rcube.php | 6 |
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]; } } |