]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix another php notice
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 10:14:08 +0000 (12:14 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 13 May 2012 10:14:08 +0000 (12:14 +0200)
apps/calendar/templates/share.dropdown.php

index 356a8d4fab14e26f8c20a423db860f7be90b095f..20d4c19bc19ea1c4fa9d0a301186b7837ed9f657 100755 (executable)
@@ -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