]> git.mxchange.org Git - friendica.git/blobdiff - mod/localtime.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / mod / localtime.php
index 9a754ac80d9edddc07892840ea897b31b9a43849..f68c3fba509600f621469f5be3a5b2c8b64dab0e 100644 (file)
@@ -42,7 +42,7 @@ function localtime_content(App $a)
                $o .= '<p>' . L10n::t('Current timezone: %s', $_REQUEST['timezone']) . '</p>';
        }
 
-       if (x($a->data, 'mod-localtime')) {
+       if (!empty($a->data['mod-localtime'])) {
                $o .= '<p>' . L10n::t('Converted localtime: %s', $a->data['mod-localtime']) . '</p>';
        }