mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix sms settings check on api
This commit is contained in:
parent
4e165ec32d
commit
490c6499e2
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ namespace controllers\publics;
|
|||
$at = (string) $at;
|
||||
$text = (string) $text;
|
||||
|
||||
if (($this->user['settings']['mms'] ?? false) && $mms)
|
||||
if ($mms && !(int)($this->user['settings']['mms'] ?? false))
|
||||
{
|
||||
$return = self::DEFAULT_RETURN;
|
||||
$return['error'] = self::ERROR_CODES['INVALID_PARAMETER'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue