diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-07-14 17:15:53 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-07-14 17:15:53 -0700 |
commit | 46aacfe64d317b5a38eea5495d72a1e734265b09 (patch) | |
tree | 81f7df26ef526176f6792e78ef7126d01f5e669c /include/security.php | |
parent | 3687fef53c5eeef7153306f45c5f187d5bfca68c (diff) | |
download | volse-hubzilla-46aacfe64d317b5a38eea5495d72a1e734265b09.tar.gz volse-hubzilla-46aacfe64d317b5a38eea5495d72a1e734265b09.tar.bz2 volse-hubzilla-46aacfe64d317b5a38eea5495d72a1e734265b09.zip |
stream_perms_xchans() set to empty quoted string when no results rather than return an empty string
Diffstat (limited to 'include/security.php')
-rw-r--r-- | include/security.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/security.php b/include/security.php index 91683cc98..bad39d805 100644 --- a/include/security.php +++ b/include/security.php @@ -422,6 +422,9 @@ function stream_perms_api_uids($perms = NULL, $limit = 0, $rand = 0 ) { $str .= intval($rr); } } + else + $str = "''"; + logger('stream_perms_api_uids: ' . $str, LOGGER_DEBUG); return $str; @@ -452,6 +455,9 @@ function stream_perms_xchans($perms = NULL ) { $str .= "'" . dbesc($rr) . "'"; } } + else + $str = "''"; + logger('stream_perms_xchans: ' . $str, LOGGER_DEBUG); return $str; |