aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-13 12:14:08 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-13 12:14:08 +0200
commit85cc34fd05ec73714b73cc3553f04e4960ccb42b (patch)
tree7caeab5346cfa3dd82157975adbe79e93e3104c5
parentf6dc158d51217be414f89d0c15526c3903e452ef (diff)
downloadnextcloud-server-85cc34fd05ec73714b73cc3553f04e4960ccb42b.tar.gz
nextcloud-server-85cc34fd05ec73714b73cc3553f04e4960ccb42b.zip
fix another php notice
-rwxr-xr-xapps/calendar/templates/share.dropdown.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/calendar/templates/share.dropdown.php b/apps/calendar/templates/share.dropdown.php
index 356a8d4fab1..20d4c19bc19 100755
--- a/apps/calendar/templates/share.dropdown.php
+++ b/apps/calendar/templates/share.dropdown.php
@@ -72,6 +72,6 @@ echo OCP\html_select_options($allgroups, array());
<?php endforeach; ?>
</ul>
<div id="public">
- <input type="checkbox" id="publish" <?php echo ($public['share'])?'checked="checked"':'' ?>><label for="publish"><?php echo $l->t('make public'); ?></label><br>
- <input type="text" id="public_token" value="<?php echo OCP\Util::linkToAbsolute('', 'public.php').'?service=calendar&t=' . $public['share'] ?>" onmouseover="$('#public_token').select();" style="<?php echo (!$public['share'])?'display:none':'' ?>">
-</div>
+ <input type="checkbox" id="publish" <?php echo (array_key_exists('share', $public))?'checked="checked"':'' ?>><label for="publish"><?php echo $l->t('make public'); ?></label><br>
+ <input type="text" id="public_token" value="<?php if(array_key_exists('share', $public)){echo OCP\Util::linkToAbsolute('', 'public.php').'?service=calendar&t=' . $public['share']; } ?>" onmouseover="$('#public_token').select();" style="<?php echo (!array_key_exists('share', $public))?'display:none':'' ?>">
+</div> \ No newline at end of file