From a4cd6e5bcb07a5f96ffbb00a20d11b3945f9abbf Mon Sep 17 00:00:00 2001 From: TheRON Date: Sat, 6 Jun 2026 22:36:03 -0400 Subject: [PATCH] Updated --- hubzilla/addon/vs01/vs01.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hubzilla/addon/vs01/vs01.php b/hubzilla/addon/vs01/vs01.php index 50ec403..b0b8fb3 100644 --- a/hubzilla/addon/vs01/vs01.php +++ b/hubzilla/addon/vs01/vs01.php @@ -77,7 +77,7 @@ function vs01_access_state($association_slug = '') { // Corpus Builder — highest participant tier $cb_gid = intval($groups['corpus_builder'] ?? 0); if ($cb_gid) { - $r = q("SELECT xchain FROM pgrp_member WHERE gid = %d AND xchain = '%s' LIMIT 1", + $r = q("SELECT xchan FROM pgrp_member WHERE gid = %d AND xchan = '%s' LIMIT 1", intval($cb_gid), dbesc($observer) ); @@ -87,7 +87,7 @@ function vs01_access_state($association_slug = '') { // SASE Participant $sase_gid = intval($groups['sase_participant'] ?? 0); if ($sase_gid) { - $r = q("SELECT xchain FROM pgrp_member WHERE gid = %d AND xchain = '%s' LIMIT 1", + $r = q("SELECT xchan FROM pgrp_member WHERE gid = %d AND xchan = '%s' LIMIT 1", intval($sase_gid), dbesc($observer) ); @@ -97,7 +97,7 @@ function vs01_access_state($association_slug = '') { // Civic Professional $prof_gid = intval($groups['civic_professional'] ?? 0); if ($prof_gid) { - $r = q("SELECT xchain FROM pgrp_member WHERE gid = %d AND xchain = '%s' LIMIT 1", + $r = q("SELECT xchan FROM pgrp_member WHERE gid = %d AND xchan = '%s' LIMIT 1", intval($prof_gid), dbesc($observer) );