1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

fix a missing brace and change id to _id

This commit is contained in:
Loïc Blot (@U-Exp)
2014-09-12 19:11:12 +02:00
parent 79f3b5ca24
commit 53cc14fc52
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class SmsController extends Controller {
}
foreach ($smsDatas as &$sms) {
if (!array_key_exists("id", $sms) || !array_key_exists("read", $sms) ||
if (!array_key_exists("_id", $sms) || !array_key_exists("read", $sms) ||
!array_key_exists("date", $sms) || !array_key_exists("seen", $sms) ||
!array_key_exists("body", $sms) || !array_key_exists("address", $sms)) {
$this->errorMsg = "Error: bad SMS entry";