Skip to content

Commit

Permalink
No exception thrown on null data
Browse files Browse the repository at this point in the history
  • Loading branch information
tomnomnom committed Aug 15, 2011
1 parent 8a71340 commit b7077e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etherpad-lite-client.php
Expand Up @@ -54,7 +54,7 @@ protected function handleResult($result){
throw new RuntimeException("API response has no message");
}
if (!isset($result->data)){
throw new RuntimeException("API response has no data");
$result->data = null;
}

switch ($result->code){
Expand Down

0 comments on commit b7077e5

Please sign in to comment.