1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-07-23 09:55:44 +00:00

Another better error output

This commit is contained in:
Loïc Blot (@U-Exp) 2014-09-12 19:24:31 +02:00
parent ccb552b87e
commit 41fe3868a9

View File

@ -70,12 +70,12 @@ class SmsController extends Controller {
} }
if (!is_numeric($sms["_id"])) { if (!is_numeric($sms["_id"])) {
$this->errorMsg = sprintf("Error: Invalid SMS ID '%s'", $sms["_id"]; $this->errorMsg = sprintf("Error: Invalid SMS ID '%s'", $sms["_id"]);
return false; return false;
} }
if ($sms["read"] !== "true" && $sms["read"] !== "false") { if ($sms["read"] !== "true" && $sms["read"] !== "false") {
$this->errorMsg = "Error: Invalid SMS Read state"; $this->errorMsg = sprintf("Error: Invalid SMS Read state '%s'", $sms["read"]);
return false; return false;
} }