From 46aacfe64d317b5a38eea5495d72a1e734265b09 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 14 Jul 2015 17:15:53 -0700 Subject: stream_perms_xchans() set to empty quoted string when no results rather than return an empty string --- include/security.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/security.php') 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; -- cgit v1.2.3