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

added argument to writeToDB to purge database entries before adding new records

This commit is contained in:
Loic Blot
2014-09-15 13:35:07 +02:00
parent 3ea5fee350
commit cd8c0e57f1
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class SmsController extends Controller {
* @NoAdminRequired
*/
public function push ($smsCount, $smsDatas) {
if ($this->checkPushStructure($smsCount, $smsDatas) === false) {
if ($this->checkPushStructure($smsCount, $smsDatas, true) === false) {
return new JSONResponse(array("status" => false, "msg" => $this->errorMsg));
}