Skip to content

Commit 01cfe05

Browse files
committed
Merge pull request #2 from ha-sash/patch-1
allow using id == 0 in BaseJsonRpcServer.php
2 parents 49c6e08 + 2e38414 commit 01cfe05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BaseJsonRpcServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private function processCall( $call ) {
274274
return $this->getError( $e->getCode(), $id, $e->getMessage() );
275275
}
276276

277-
if ( !$id ) {
277+
if ( !$id && $id !== 0 ) {
278278
return null;
279279
}
280280

0 commit comments

Comments
 (0)