Skip to content
Snippets Groups Projects
Commit 1232df5e authored by Dominik Eckelmann's avatar Dominik Eckelmann
Browse files

treat null as empty array

parent cb0d045e
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,9 @@ class RemoteAPI {
* @return mixed result of method call, must be a primitive type.
*/
public function call($method, $args = array()) {
if ($args === null) {
$args = array();
}
list($type, $pluginName, $call) = explode('.', $method, 3);
if ($type === 'plugin') {
$plugin = plugin_load('remote', $pluginName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment