Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

@@ -80,8 +80,16 @@ class _Table extends \IPS\Helpers\Table\Table
{
$where[] = \is_array( $this->filters[ $this->filter ] ) ? $this->filters[ $this->filter ] : array( $this->filters[ $this->filter ] );
}
$where[] = array( 'sp_enabled=1' );
// We want also the disabled but active subscription
if( !$this->activeSubscription )
{
$where[] = array( 'sp_enabled=1' );
}
else
{
$where[] = array( '(sp_enabled=1 OR sp_id=?)', $this->activeSubscription->package_id );
}
/* Get Count */
$count = \IPS\Db::i()->select( 'COUNT(*) as cnt', 'nexus_member_subscription_packages', $where )->first();