Ejemplo n.º 1
0
 function Delete($ID, $arEvIds = false)
 {
     global $DB;
     if (!$this->CheckPermissionForEvent(array(), true)) {
         return CEventCalendar::ThrowError('EC_ACCESS_DENIED');
     }
     @set_time_limit(0);
     $DB->StartTransaction();
     if (!CIBlockSection::Delete($ID)) {
         $DB->Rollback();
         return false;
     }
     $DB->Commit();
     return true;
 }