From 28975931b5a3a16554b391e3b08885ba118b3748 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 20 Mar 2013 23:35:21 +0000 Subject: Add a fallback or two to randprof. --- mod/randprof.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/randprof.php b/mod/randprof.php index bddb3251a..7678c15b9 100644 --- a/mod/randprof.php +++ b/mod/randprof.php @@ -1,11 +1,24 @@ get_baseurl() . '/profile'); + // Nothing there, so try a local, public channel instead + else $x = randprof_fallback(); + if($x) { + $goaway = (z_root() . '/channel/' . $x); + goaway(chanlink_url($goaway));} + + // If we STILL haven't got anything, send them to their own profile, or the front page + + goaway($a->get_baseurl()); } -- cgit v1.2.3