aboutsummaryrefslogtreecommitdiffstats
path: root/mod/allfriends.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/allfriends.php')
-rw-r--r--mod/allfriends.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/allfriends.php b/mod/allfriends.php
index f675b8e29..bb4df30be 100644
--- a/mod/allfriends.php
+++ b/mod/allfriends.php
@@ -5,13 +5,14 @@ require_once('include/socgraph.php');
function allfriends_content(&$a) {
$o = '';
+
if(! local_user()) {
notice( t('Permission denied.') . EOL);
return;
}
- if($a->argc > 1)
- $cid = intval($a->argv[1]);
+ if(argc() > 1)
+ $cid = intval(argv(1));
if(! $cid)
return;