diff --git a/disqusapi/disqusapi.php b/disqusapi/disqusapi.php index 00ff7eb..97d5dce 100644 --- a/disqusapi/disqusapi.php +++ b/disqusapi/disqusapi.php @@ -75,7 +75,7 @@ public function __call($name, $args) { if (!$resource) { throw new DisqusInterfaceNotDefined(); } - $kwargs = (array)$args[0]; + $kwargs = isset($args[0]) ? (array)$args[0] : array(); foreach ((array)$resource->required as $k) { if (empty($kwargs[$k])) { @@ -147,4 +147,4 @@ public function setFormat($format) { public function setVersion($version) { $this->version = $version; } -} \ No newline at end of file +}