Fixed issue with SG_iCal_Query and supplying the SG_iCalReader directly, instead of the Events array.

master
fangel 2008-03-25 18:36:18 +00:00
rodzic b17871f72d
commit c306da79f4
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -20,7 +20,7 @@ class SG_iCal_Query {
*/
public static function Between( $ical, $start, $end ) {
if( $ical instanceof SG_iCalReader ) {
$evs = $ical->getEvents();
$ical = $ical->getEvents();
}
if( !is_array($evs) ) {
throw new Exception('SG_iCal_Query::Between called with invalid input!');
@ -45,7 +45,7 @@ class SG_iCal_Query {
*/
public static function After( $ical, $start ) {
if( $ical instanceof SG_iCalReader ) {
$evs = $ical->getEvents();
$ical = $ical->getEvents();
}
if( !is_array($ical) ) {
throw new Exception('SG_iCal_Query::After called with invalid input!');
@ -70,7 +70,7 @@ class SG_iCal_Query {
*/
public static function Sort( $ical, $column ) {
if( $ical instanceof SG_iCalReader ) {
$evs = $ical->getEvents();
$ical = $ical->getEvents();
}
if( !is_array($ical) ) {
throw new Exception('SG_iCal_Query::Sort called with invalid input!');