]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / mod / home.php
index b375707404a2cf52799c54649ba5a13a607fa0d0..02ec51dc0bb796163b4dc223b1779018712c4e18 100644 (file)
@@ -29,10 +29,10 @@ function home_init(App $a) {
 if(! function_exists('home_content')) {
 function home_content(App $a) {
 
-       if (x($_SESSION,'theme')) {
+       if (!empty($_SESSION['theme'])) {
                unset($_SESSION['theme']);
        }
-       if (x($_SESSION,'mobile-theme')) {
+       if (!empty($_SESSION['mobile-theme'])) {
                unset($_SESSION['mobile-theme']);
        }