Fix sms settings check on api

This commit is contained in:
osaajani 2023-09-19 18:34:59 +02:00
parent 4e165ec32d
commit 490c6499e2
1 changed files with 1 additions and 1 deletions

View File

@ -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'];