Ensure $uid parameter of Feature::isEnabled to be an integer
This commit is contained in:
parent
e9511b4f34
commit
19247b62ae
5 changed files with 16 additions and 12 deletions
|
@ -149,7 +149,7 @@ function photos_post(App $a)
|
|||
$can_post = false;
|
||||
$visitor = 0;
|
||||
|
||||
$page_owner_uid = $a->data['user']['uid'];
|
||||
$page_owner_uid = intval($a->data['user']['uid']);
|
||||
$community_page = $a->data['user']['page-flags'] == User::PAGE_FLAGS_COMMUNITY;
|
||||
|
||||
if (local_user() && (local_user() == $page_owner_uid)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue