X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fothersettings.php;h=10e9873b390b16f6cbc7e0d849a0c6d770a9814a;hb=f2d6e1e375410bee0efc90c80b1e74699a4c6b7d;hp=d52a634aca37b606a14f5f95b83d37e93457e3fb;hpb=014d6b1d19b6ae5de8d87f055397993f80579f74;p=quix0rs-gnu-social.git diff --git a/actions/othersettings.php b/actions/othersettings.php index d52a634aca..10e9873b39 100644 --- a/actions/othersettings.php +++ b/actions/othersettings.php @@ -57,7 +57,7 @@ class OthersettingsAction extends AccountSettingsAction function title() { - return _('Other Settings'); + return _('Other settings'); } /** @@ -96,8 +96,11 @@ class OthersettingsAction extends AccountSettingsAction common_local_url('othersettings'))); $this->elementStart('fieldset'); $this->hidden('token', common_session_token()); + $this->elementStart('ul', 'form_data'); + $shorteners = array(); Event::handle('GetUrlShorteners', array(&$shorteners)); + $services = array(); foreach($shorteners as $name=>$value) { $services[$name]=$name; @@ -105,14 +108,16 @@ class OthersettingsAction extends AccountSettingsAction $services[$name].=_(' (free service)'); } } - asort($services); + if($services) + { + asort($services); - $this->elementStart('ul', 'form_data'); - $this->elementStart('li'); - $this->dropdown('urlshorteningservice', _('Shorten URLs with'), - $services, _('Automatic shortening service to use.'), - false, $user->urlshorteningservice); - $this->elementEnd('li'); + $this->elementStart('li'); + $this->dropdown('urlshorteningservice', _('Shorten URLs with'), + $services, _('Automatic shortening service to use.'), + false, $user->urlshorteningservice); + $this->elementEnd('li'); + } $this->elementStart('li'); $this->checkbox('viewdesigns', _('View profile designs'), $user->viewdesigns, _('Show or hide profile designs.'));