Skip to content

Commit 0d5e4ff

Browse files
committed
added null check for $key
1 parent ad0d370 commit 0d5e4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EtherpadLite/Response.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getData($key = null, $defaultValue = null)
6161
{
6262
$data = $this->getPropertyFromData('data');
6363

64-
if ($key) {
64+
if (null !== $key) {
6565
return isset($data[$key]) ? $data[$key] : $defaultValue;
6666
}
6767

0 commit comments

Comments
 (0)