1
0
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:
Loïc Blot (@U-Exp) 2014-09-12 19:21:39 +02:00
parent 25d3fe8516
commit ccb552b87e

View File

@ -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;
}