summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Eckelmann <deckelmann@gmail.com>2012-01-08 18:27:27 +0100
committerDominik Eckelmann <deckelmann@gmail.com>2012-01-08 18:27:27 +0100
commit1232df5e9480465ff8b2e24ce5760766b3bd908c (patch)
tree8a9e35fbd3c948796ea8473d0cf308711c3875f0
parentcb0d045e79603fb7f0c6703aaf633c8d0e34c117 (diff)
downloadrpg-1232df5e9480465ff8b2e24ce5760766b3bd908c.tar.gz
rpg-1232df5e9480465ff8b2e24ce5760766b3bd908c.tar.bz2
treat null as empty array
-rw-r--r--inc/remote.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/remote.php b/inc/remote.php
index 76d07b344..c18cb3713 100644
--- a/inc/remote.php
+++ b/inc/remote.php
@@ -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);