Welcome Guest, Not a member yet? Register   Sign In
Why am I getting these notices? I haven't before. Undefined offset / index for a custom calendar class.
#11

[eluser]Kinsbane[/eluser]
[quote author="pistolPete" date="1237258422"]Did you remove some comment at the beginning of the file?
I don't see any array in line 169 or 345...[/quote]

No, I didn't. Line #169 of the DCCalendar.php file is contained within the get_events_in_week() function, specifically within a while loop:
Code:
#168. while($date < $enddate) {
#169.            if($this->events[$date]) {
#170.                $events = array_merge($events, array_keys($this->events[$date]));
#171.            }
#172.            $date += $day;
#173.        }
#12

[eluser]Kinsbane[/eluser]
Sorry pistolPete if you missed my link for the class txt file. Here it is:
http://www.kinsbane.net/temp/ci-class.dccalendar.txt

I guess CI forums don't auto-link?
#13

[eluser]Kinsbane[/eluser]
Hoping you guys can still help out. Any way to get around the undefined offset errors? Do I have to set the timestamp key up as a string rather than as a number?




Theme © iAndrew 2016 - Forum software by © MyBB