Version 5.0.0 beta 2

This commit is contained in:
Neo committed 2025-12-19 16:39:01 -08:00
1 parent 15c7beabc5
commit f61b0da85d
181 files changed
+3182 -1533

No files matched your search

+12
View File
@@ -174,6 +174,18 @@ class clubs extends Widget implements Customizable
if ( Settings::i()->clubs and Member::loggedIn()->canAccessModule( Module::get( 'core', 'clubs', 'front' ) ) )
{
/* Strip any not existing custom field filters, e.g. when a field was deleted */
if ( isset( $this->configuration['filters'] ) and \is_array( $this->configuration['filters'] ) )
{
$fields = CustomField::roots();
foreach ( $this->configuration['filters'] as $key => $value )
{
if( !isset( $fields[ $key ] ) )
{
unset( $this->configuration['filters'][ $key ] );
}
}
}
$clubsCount = Club::clubs(
Member::loggedIn(),
$this->configuration['number_to_show'] ?? 10,