Check for name existence in parameters before checking

This commit is contained in:
Vasilii Zolotukhin 2019-09-18 16:32:23 +10:00 committed by David Garcia
parent cc0809f9bc
commit f64acb148b

View File

@ -219,7 +219,7 @@ class Member extends HttpApi
} }
} }
if (null === $parameters['name']) { if (array_key_exists('name', $parameters) && null === $parameters['name']) {
unset($parameters['name']); unset($parameters['name']);
} }