Ignore:
Timestamp:
04/24/12 10:56:43 (12 years ago)
Author:
acoutinho
Message:

Ticket #2650 - Inconsistencias com a repeticao, alguns logs de erros sendo gerados

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/interceptors/DBMapping.php

    r5998 r6011  
    178178            unset( $repeat['exceptions'] ); 
    179179        } 
    180          
     180 
    181181        $lastExceptions = Controller::find( array( 'concept' => 'repeatOccurrence' ), array("occurrence") , array( 'filter' => array('AND', array( '=', 'repeat', $id ) , array( '=', 'exception', 1 ) ) )); 
    182  
     182         
    183183        //Recurepa as execeções anteriores caso exista 
    184         if(isset($lastExceptions) && count($lastExceptions)) 
     184        if(isset($lastExceptions) && count($lastExceptions) && $lastExceptions) 
    185185            foreach($lastExceptions as $key => $value) 
    186186                array_push($exceptions, $lastExceptions[$key]['occurrence']); 
Note: See TracChangeset for help on using the changeset viewer.