]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
Replace x() by isset(), !empty() or defaults()
[friendica.git] / mod / profile.php
index 3164f173bf717454e52080ad33f92106b268cac8..abbe65ccba2b7bbd9785aa14a03f20f788057aad 100644 (file)
@@ -242,7 +242,7 @@ function profile_content(App $a, $update = 0)
        $sql_extra2 = '';
 
        if ($update) {
-               $last_updated = (!empty($_SESSION['last_updated'][$last_updated_key]) ? $_SESSION['last_updated'][$last_updated_key] : 0);
+               $last_updated = (defaults($_SESSION['last_updated'], $last_updated_key, 0));
 
                // If the page user is the owner of the page we should query for unseen
                // items. Otherwise use a timestamp of the last succesful update request.