aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/profile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php
index c4c0fc35b..d59602ba0 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -12,7 +12,7 @@ function profile_init(&$a) {
$profile = '';
$channel = $a->get_channel();
-dbg(1);
+
if((local_user()) && (argc() > 2) && (argv(2) === 'view')) {
$which = $channel['channel_address'];
$profile = argv(1);
@@ -38,7 +38,7 @@ dbg(1);
// $channel_display = get_pconfig($a->profile['profile_uid'],'system','channel_format');
// if(! $channel_display)
profile_load($a,$which,$profile);
-dbg(0);
+
}