mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
Fix id => _id. Add better error output
This commit is contained in:
parent
25d3fe8516
commit
ccb552b87e
@ -69,8 +69,8 @@ class SmsController extends Controller {
|
||||
$sms["draft"] = "true";
|
||||
}
|
||||
|
||||
if (!is_numeric($sms["id"])) {
|
||||
$this->errorMsg = "Error: Invalid SMS ID";
|
||||
if (!is_numeric($sms["_id"])) {
|
||||
$this->errorMsg = sprintf("Error: Invalid SMS ID '%s'", $sms["_id"];
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user