kopia lustrzana https://github.com/friendica/SG-iCalendar
fix remaining $evs
rodzic
f28be0bc55
commit
5b5012f71d
|
@ -22,12 +22,12 @@ class SG_iCal_Query {
|
|||
if( $ical instanceof SG_iCalReader ) {
|
||||
$ical = $ical->getEvents();
|
||||
}
|
||||
if( !is_array($evs) ) {
|
||||
if( !is_array($ical) ) {
|
||||
throw new Exception('SG_iCal_Query::Between called with invalid input!');
|
||||
}
|
||||
|
||||
$rtn = array();
|
||||
foreach( $evs AS $e ) {
|
||||
foreach( $ical AS $e ) {
|
||||
if( ($start <= $e->getStart() && $e->getStart() < $end)
|
||||
|| ($start < $e->getEnd() && $e->getEnd() <= $end) ) {
|
||||
$rtn[] = $e;
|
||||
|
|
Ładowanie…
Reference in New Issue