mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
Return string default instead of array in updates 1266 and 1257.
This commit is contained in:
parent
578bb57da1
commit
1e2b3290cc
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class _1257
|
||||||
$r = q("SELECT * from abook where abook_self = 0");
|
$r = q("SELECT * from abook where abook_self = 0");
|
||||||
if ($r) {
|
if ($r) {
|
||||||
foreach ($r as $rv) {
|
foreach ($r as $rv) {
|
||||||
$perms = AbConfig::Get($rv['abook_channel'], $rv['abook_xchan'], 'system', 'my_perms', [] );
|
$perms = AbConfig::Get($rv['abook_channel'], $rv['abook_xchan'], 'system', 'my_perms', '' );
|
||||||
$s = explode(',', $perms);
|
$s = explode(',', $perms);
|
||||||
if (in_array('view_stream', $s) && (! in_array('deliver_stream', $s))) {
|
if (in_array('view_stream', $s) && (! in_array('deliver_stream', $s))) {
|
||||||
$s[] = 'deliver_stream';
|
$s[] = 'deliver_stream';
|
||||||
|
|
|
@ -20,7 +20,7 @@ class _1266
|
||||||
$r = q("SELECT * from abook where abook_self = 0");
|
$r = q("SELECT * from abook where abook_self = 0");
|
||||||
if ($r) {
|
if ($r) {
|
||||||
foreach ($r as $rv) {
|
foreach ($r as $rv) {
|
||||||
$perms = AbConfig::Get($rv['abook_channel'], $rv['abook_xchan'], 'system', 'my_perms', [] );
|
$perms = AbConfig::Get($rv['abook_channel'], $rv['abook_xchan'], 'system', 'my_perms', '' );
|
||||||
$s = explode(',', $perms);
|
$s = explode(',', $perms);
|
||||||
if (in_array('view_stream', $s) && (! in_array('search_stream', $s))) {
|
if (in_array('view_stream', $s) && (! in_array('search_stream', $s))) {
|
||||||
$s[] = 'search_stream';
|
$s[] = 'search_stream';
|
||||||
|
|
Loading…
Reference in a new issue