aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-21 03:34:17 -0800
committerfriendica <info@friendica.com>2012-12-21 03:34:17 -0800
commit7daf2cf7dbfbbfa8f10378c8c16175548bedae87 (patch)
treed4ed659bf7fbb37166e8977c7a3187cc1f846df5 /mod
parentabee07f12bc1fab1b6304215662a36aedba6aada (diff)
downloadvolse-hubzilla-7daf2cf7dbfbbfa8f10378c8c16175548bedae87.tar.gz
volse-hubzilla-7daf2cf7dbfbbfa8f10378c8c16175548bedae87.tar.bz2
volse-hubzilla-7daf2cf7dbfbbfa8f10378c8c16175548bedae87.zip
directory structures
Diffstat (limited to 'mod')
-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;