aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-31 15:55:27 -0800
committerredmatrix <git@macgirvin.com>2016-01-31 15:55:27 -0800
commita341c889b751055e90eba9b7a14da5b7cd0e8032 (patch)
treec42867ffbcac204c664522cb1559b7169c797cc1 /include/security.php
parent1f87fef9684a29da91fcb41a5d1d3bd4fb9a4619 (diff)
downloadvolse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.tar.gz
volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.tar.bz2
volse-hubzilla-a341c889b751055e90eba9b7a14da5b7cd0e8032.zip
add oembed provider for photos
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/security.php b/include/security.php
index 2a9a6e39e..ee94dba82 100644
--- a/include/security.php
+++ b/include/security.php
@@ -181,7 +181,7 @@ function permissions_sql($owner_id, $remote_observer = null) {
*/
else {
- $observer = (($remote_observer) ? $remote_observer : get_observer_hash());
+ $observer = ((! is_null($remote_observer)) ? $remote_observer : get_observer_hash());
if($observer) {
$groups = init_groups_visitor($observer);