fix style + undefined var api instead of api_key

This commit is contained in:
osaajani 2020-03-04 05:10:45 +01:00
parent f4cb825d16
commit aaa7eb8061
6 changed files with 19 additions and 15 deletions

View file

@ -40,7 +40,7 @@ namespace controllers\internals;
'flash' => $flash,
];
if ($id_phone !== null)
if (null !== $id_phone)
{
$internal_phone = new Phone($this->bdd);
$find_phone = $internal_phone->get_for_user($id_user, $id_phone);
@ -131,7 +131,7 @@ namespace controllers\internals;
'flash' => $flash,
];
if ($id_phone !== null)
if (null !== $id_phone)
{
$internal_phone = new Phone($this->bdd);
$find_phone = $internal_phone->get_for_user($id_user, $id_phone);