Return string default instead of array in updates 1266 and 1257.

This commit is contained in:
Mike Macgirvin 2023-01-30 05:46:13 +11:00
parent 578bb57da1
commit 1e2b3290cc
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class _1257
$r = q("SELECT * from abook where abook_self = 0");
if ($r) {
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);
if (in_array('view_stream', $s) && (! in_array('deliver_stream', $s))) {
$s[] = 'deliver_stream';

View file

@ -20,7 +20,7 @@ class _1266
$r = q("SELECT * from abook where abook_self = 0");
if ($r) {
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);
if (in_array('view_stream', $s) && (! in_array('search_stream', $s))) {
$s[] = 'search_stream';