From c8df3578ca454919056c8974ad6e8b51f8fec434 Mon Sep 17 00:00:00 2001 From: "paul.baranowski" Date: Mon, 18 Oct 2010 15:06:17 +0200 Subject: [PATCH] Fixed PHP notices. --- htmlUI/ui_scheduler.class.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/htmlUI/ui_scheduler.class.php b/htmlUI/ui_scheduler.class.php index 80d835996..f52e607d2 100644 --- a/htmlUI/ui_scheduler.class.php +++ b/htmlUI/ui_scheduler.class.php @@ -1,6 +1,9 @@ getClipFromCurrent($c_pl, 0)) { $n_clip = $this->getClipFromCurrent($c_pl, 1); } - if ($u_pl = self::getScheduledPlaylist(1)) { + $u_clip = null; + $u_pl_start = null; + if ($u_pl = self::getScheduledPlaylist(2)) { $u_clip = $this->getClipFromPlaylist($u_pl); $u_pl_start = explode(':', date('H:i:s', self::datetimeToTimestamp($u_pl['start']))); } @@ -729,10 +734,9 @@ class uiScheduler extends uiCalendar { 'current.duration.m' => $c_clip['duration']['m'], 'current.duration.s' => $c_clip['duration']['s'], - 'next' => $n_clip ? 1 : 0, 'next.title' => $n_clip ? addcslashes($n_clip['title'], "'") : "", - 'next.pltitle' => addcslashes($this->Base->getMetadataValue(BasicStor::IdFromGunid($n_pl['playlistId']), UI_MDATA_KEY_TITLE), "'"), + 'next.pltitle' => addcslashes($this->Base->getMetadataValue($n_clip, UI_MDATA_KEY_TITLE), "'"), 'next.duration.h' => $n_clip ? $n_clip['duration']['h'] : 0, 'next.duration.m' => $n_clip ? $n_clip['duration']['m'] : 0, 'next.duration.s' => $n_clip ? $n_clip['duration']['s'] : 0, @@ -748,7 +752,7 @@ class uiScheduler extends uiCalendar { 'upcoming.plstart.s' => $u_pl_start[2], ); - } // fn getNowPlaying4jscom + } /** @@ -783,11 +787,9 @@ class uiScheduler extends uiCalendar { protected function _scheduledDays($period) { if ($period === 'month') { - require_once('Calendar/Month/Weekdays.php'); $Period = new Calendar_Month_Weekdays($this->curr['year'], $this->curr['month'], $this->firstDayOfWeek); $Period->build(); } elseif ($period === 'week') { - require_once('Calendar/Week.php'); $Period = new Calendar_Week($this->curr['year'], $this->curr['month'], $this->curr['day'], $this->firstDayOfWeek); $Period->build(); } else { @@ -1296,4 +1298,5 @@ class uiScheduler extends uiCalendar { } } // class uiScheduler -?> + +?> \ No newline at end of file