redir links for permission controlled attachments

This commit is contained in:
friendica 2012-05-21 22:54:39 -07:00
commit a163825291
4 changed files with 30 additions and 27 deletions

View file

@ -6,7 +6,7 @@ function redir_init(&$a) {
// traditional DFRN
if(local_user() && $a->argc == 2 && intval($a->argv[1])) {
if(local_user() && $a->argc > 1 && intval($a->argv[1])) {
$cid = $a->argv[1];