fix smsstop

This commit is contained in:
osaajani 2021-07-13 02:36:22 +02:00
parent 8492da652a
commit 1f46b3ad57
2 changed files with 3 additions and 3 deletions

View File

@ -307,7 +307,7 @@ namespace controllers\internals;
$users_settings[$scheduled['id_user']][$name] = $value;
}
}
if (!isset($users_smsstops[$scheduled['id_user']]) && $users_settings[$scheduled['id_user']]['smsstop'])
{
$users_smsstops[$scheduled['id_user']] = [];
@ -315,7 +315,7 @@ namespace controllers\internals;
$smsstops = $internal_smsstop->gets_for_user($scheduled['id_user']);
foreach ($smsstops as $smsstop)
{
$users_settings[$scheduled['id_user']][] = $smsstop['number'];
$users_smsstops[$scheduled['id_user']][] = $smsstop['number'];
}
}

View File

@ -82,6 +82,6 @@ namespace controllers\internals;
*/
public function check_for_stop (string $str)
{
return trim(mb_strtolower($str)) == 'STOP';
return trim(mb_strtolower($str)) == 'stop';
}
}