]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
diabook-themes: minor bugfixes
[friendica.git] / mod / profile.php
index 68d73fba3829b50aab8d2fb33897788ee148dfe9..de1e2724899c4c7791422a17a84df618642fc571 100644 (file)
@@ -14,9 +14,10 @@ function profile_init(&$a) {
        else {
                $r = q("select nickname from user where blocked = 0 and account_expired = 0 and verified = 1 order by rand() limit 1");
                if(count($r)) {
-                       $which = $r[0]['nickname'];
+                       goaway($a->get_baseurl() . '/profile/' . $r[0]['nickname']);
                }
                else {
+                       logger('profile error: mod_profile ' . $a->query_string, LOGGER_DEBUG);
                        notice( t('Requested profile is not available.') . EOL );
                        $a->error = 404;
                        return;