Compare commits

...

2 Commits

Author SHA1 Message Date
osaajani 3b2dddbea3 up version 2023-09-19 18:35:13 +02:00
osaajani 490c6499e2 Fix sms settings check on api 2023-09-19 18:34:59 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
v3.8.0 v3.8.1

View File

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