Fix sms settings check on api
This commit is contained in:
parent
4e165ec32d
commit
490c6499e2
|
@ -426,7 +426,7 @@ namespace controllers\publics;
|
||||||
$at = (string) $at;
|
$at = (string) $at;
|
||||||
$text = (string) $text;
|
$text = (string) $text;
|
||||||
|
|
||||||
if (($this->user['settings']['mms'] ?? false) && $mms)
|
if ($mms && !(int)($this->user['settings']['mms'] ?? false))
|
||||||
{
|
{
|
||||||
$return = self::DEFAULT_RETURN;
|
$return = self::DEFAULT_RETURN;
|
||||||
$return['error'] = self::ERROR_CODES['INVALID_PARAMETER'];
|
$return['error'] = self::ERROR_CODES['INVALID_PARAMETER'];
|
||||||
|
|
Loading…
Reference in New Issue