From: Georg Ehrke Date: Sat, 21 Apr 2012 20:27:19 +0000 (+0200) Subject: fix a php notice X-Git-Tag: v4.0.0beta~244^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=74e540271122222f650bbbfaeaac310b0e592674;p=nextcloud-server.git fix a php notice --- diff --git a/apps/calendar/templates/part.choosecalendar.php b/apps/calendar/templates/part.choosecalendar.php index d93a85aeca0..4f6680bb497 100644 --- a/apps/calendar/templates/part.choosecalendar.php +++ b/apps/calendar/templates/part.choosecalendar.php @@ -7,6 +7,12 @@ for($i = 0; $i < count($option_calendars); $i++){ echo ""; $tmpl = new OC_Template('calendar', 'part.choosecalendar.rowfields'); $tmpl->assign('calendar', $option_calendars[$i]); + if(OC_Calendar_Share::allUsersSharedwith($option_calendars[$i]['id'], OC_Calendar_Share::CALENDAR) == array()){ + $shared = false; + }else{ + $shared = true; + } + $tmpl->assign('shared', $shared); $tmpl->printpage(); echo ""; } diff --git a/apps/calendar/templates/part.choosecalendar.rowfields.php b/apps/calendar/templates/part.choosecalendar.rowfields.php index 21fb3f8a097..cf85f0dc53e 100644 --- a/apps/calendar/templates/part.choosecalendar.rowfields.php +++ b/apps/calendar/templates/part.choosecalendar.rowfields.php @@ -1,7 +1,7 @@ '; echo ''; -echo ''; +echo ''; echo ''; echo ''; echo '';