1
0
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:
Loïc Blot (@U-Exp)
2014-09-12 17:12:49 +02:00
parent c089cc3ded
commit 52fe3c44c4
4 changed files with 16 additions and 22 deletions
-3
View File
@@ -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";