aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-07-14 09:36:10 +0000
committerMario <mario@mariovavti.com>2020-07-14 09:36:10 +0000
commit01abb82c37e3fe5b0505154a8bf5f3bc4c712f53 (patch)
tree18078fc886f99740aabf318d9f08bf54cd1c652b /include/channel.php
parent1c88a8d4a065fb4df81f2d4566a078ac75c670b8 (diff)
downloadvolse-hubzilla-01abb82c37e3fe5b0505154a8bf5f3bc4c712f53.tar.gz
volse-hubzilla-01abb82c37e3fe5b0505154a8bf5f3bc4c712f53.tar.bz2
volse-hubzilla-01abb82c37e3fe5b0505154a8bf5f3bc4c712f53.zip
prefer zot6 sys channel
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/channel.php b/include/channel.php
index 210b6ae91..05f1bd34b 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -129,10 +129,10 @@ function create_sys_channel() {
* @return array|boolean
*/
function get_sys_channel() {
- $r = q("select * from channel left join xchan on channel_hash = xchan_hash where channel_system = 1 limit 1");
+ $r = q("select * from channel left join xchan on channel_hash = xchan_hash where channel_system = 1");
if ($r)
- return $r[0];
+ return Libzot::zot_record_preferred($r, 'xchan_network');
return false;
}