mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Because there is a bug on boolean recognition in PHP, we are using string octal representation for flags
This commit is contained in:
@@ -85,9 +85,6 @@ class SmsController extends Controller {
|
||||
$this->errorMsg = "Error: Invalid SMS Draft state";
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
$sms["draft"] == $sms["draft"] === true;
|
||||
}
|
||||
|
||||
if (!is_numeric($sms["date"]) && $sms["date"] != 0 && $sms["date"] != 1) {
|
||||
$this->errorMsg = "Error: Invalid SMS date";
|
||||
|
||||
Reference in New Issue
Block a user