From 7daf2cf7dbfbbfa8f10378c8c16175548bedae87 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 21 Dec 2012 03:34:17 -0800 Subject: directory structures --- mod/allfriends.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/allfriends.php') 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; -- cgit v1.2.3