summaryrefslogtreecommitdiffstats
path: root/apps/calendar
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-10 11:58:08 +0200
committerBart Visscher <bartv@thisnet.nl>2011-09-10 11:58:08 +0200
commit97fc236760a4804732a400bab4bf0a4cc4a0b7fd (patch)
tree3daf300200de6d5a03c96ee7ebe908062fcb46ef /apps/calendar
parent1afeb5cd127ab070a0257ddbc61507281e1f68a1 (diff)
downloadnextcloud-server-97fc236760a4804732a400bab4bf0a4cc4a0b7fd.tar.gz
nextcloud-server-97fc236760a4804732a400bab4bf0a4cc4a0b7fd.zip
Fix a warning and an error
Diffstat (limited to 'apps/calendar')
-rw-r--r--apps/calendar/templates/settings.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/calendar/templates/settings.php b/apps/calendar/templates/settings.php
index 0b0a4f1c265..650bf29bbc9 100644
--- a/apps/calendar/templates/settings.php
+++ b/apps/calendar/templates/settings.php
@@ -2,7 +2,9 @@
<fieldset class="personalblock">
<label for="timezone"><strong><?php echo $l->t('Timezone');?></strong></label>
<select id="timezone" name="timezone">
- <?php foreach($_['timezones'] as $timezone):
+ <?php
+ $continent = '';
+ foreach($_['timezones'] as $timezone):
if ( preg_match( '/^(America|Antartica|Arctic|Asia|Atlantic|Europe|Indian|Pacific)\//', $timezone ) ):
$ex=explode('/', $timezone, 2);//obtain continent,city
if ($continent!=$ex[0]):