Skip to content

Commit

Permalink
Fix sms settings check on api
Browse files Browse the repository at this point in the history
  • Loading branch information
osaajani committed Sep 19, 2023
1 parent 4e165ec commit 490c649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/publics/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public function post_scheduled()
$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'];
Expand Down

0 comments on commit 490c649

Please sign in to comment.