From 1e2b3290cce1f8d9651ae1cd7e3c1bd61350c2b7 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 30 Jan 2023 05:46:13 +1100 Subject: [PATCH] Return string default instead of array in updates 1266 and 1257. --- Code/Update/_1257.php | 2 +- Code/Update/_1266.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Update/_1257.php b/Code/Update/_1257.php index 54d9bb5e7..95c5b5a46 100644 --- a/Code/Update/_1257.php +++ b/Code/Update/_1257.php @@ -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'; diff --git a/Code/Update/_1266.php b/Code/Update/_1266.php index af7390f4d..1bf038a87 100644 --- a/Code/Update/_1266.php +++ b/Code/Update/_1266.php @@ -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';