mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 14:36:09 -04:00
Fix deleting single events
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
#error_reporting(0);
|
||||
|
||||
if ( empty($_REQUEST['id']) && empty($_REQUEST['eids']) ) {
|
||||
ajaxError('No event id(s) supplied');
|
||||
@@ -136,7 +136,7 @@ if ( canEdit('Events') ) {
|
||||
ajaxResponse(array('refreshEvent'=>true, 'refreshParent'=>false));
|
||||
break;
|
||||
case 'delete' :
|
||||
$Event = new Event($_REQUEST['id']);
|
||||
$Event = new ZM\Event($_REQUEST['id']);
|
||||
if ( ! $Event->Id() ) {
|
||||
ajaxResponse(array('refreshEvent'=>false, 'refreshParent'=>true, 'message'=> 'Event not found.'));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user