We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad0d370 commit 0d5e4ffCopy full SHA for 0d5e4ff
src/EtherpadLite/Response.php
@@ -61,7 +61,7 @@ public function getData($key = null, $defaultValue = null)
61
{
62
$data = $this->getPropertyFromData('data');
63
64
- if ($key) {
+ if (null !== $key) {
65
return isset($data[$key]) ? $data[$key] : $defaultValue;
66
}
67
0 commit comments