fix smsstop
This commit is contained in:
parent
8492da652a
commit
1f46b3ad57
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue