]> git.mxchange.org Git - friendica.git/blobdiff - include/security.php
Remove unused parameter in can_write_wall()
[friendica.git] / include / security.php
index c443586c252a48fa946a6623ee28b5a9f0daa730..3cdfb4f28d83ab6921d6f3f152def8b886cacbf3 100644 (file)
@@ -165,7 +165,7 @@ function authenticate_success($user_record, $login_initial = false, $interactive
        }
 }
 
-function can_write_wall(App $a, $owner)
+function can_write_wall($owner)
 {
        static $verified = 0;
 
@@ -174,8 +174,7 @@ function can_write_wall(App $a, $owner)
        }
 
        $uid = local_user();
-
-       if (($uid) && ($uid == $owner)) {
+       if ($uid == $owner) {
                return true;
        }