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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user