Fix a warning and an error

This commit is contained in:
Bart Visscher 2011-09-10 11:58:08 +02:00
parent 1afeb5cd12
commit 97fc236760
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,9 @@
<fieldset class="personalblock"> <fieldset class="personalblock">
<label for="timezone"><strong><?php echo $l->t('Timezone');?></strong></label> <label for="timezone"><strong><?php echo $l->t('Timezone');?></strong></label>
<select id="timezone" name="timezone"> <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 ) ): if ( preg_match( '/^(America|Antartica|Arctic|Asia|Atlantic|Europe|Indian|Pacific)\//', $timezone ) ):
$ex=explode('/', $timezone, 2);//obtain continent,city $ex=explode('/', $timezone, 2);//obtain continent,city
if ($continent!=$ex[0]): if ($continent!=$ex[0]):

View File

@ -15,7 +15,7 @@ if(strpos($_SERVER["REQUEST_URI"],'?') and !strpos($_SERVER["REQUEST_URI"],'='))
} }
OC_Util::addHeader('link',array('rel'=>'openid.server', 'href'=>OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$userName)); OC_Util::addHeader('link',array('rel'=>'openid.server', 'href'=>OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$userName));
OC_Util::addHeader('link',array('rel'=>'openid.delegate', 'href'=>$OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$userName)); OC_Util::addHeader('link',array('rel'=>'openid.delegate', 'href'=>OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$userName));
OC_APP::registerPersonal('user_openid','settings'); OC_APP::registerPersonal('user_openid','settings');