Version 4.7.23

This commit is contained in:
Neo committed 2025-12-19 16:21:27 -08:00
1 parent 7124a02564
commit 25ddeb65d6
1791 files changed
+76990 -44452

No files matched your search

+13
View File
@@ -155,6 +155,19 @@ class _clubs extends \IPS\Widget
{
if ( \IPS\Settings::i()->clubs and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\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 = \IPS\Member\Club\CustomField::roots();
foreach ( $this->configuration['filters'] as $key => $value )
{
if( !isset( $fields[ $key ] ) )
{
unset( $this->configuration['filters'][ $key ] );
}
}
}
$clubsCount = \IPS\Member\Club::clubs(
\IPS\Member::loggedIn(),
isset( $this->configuration['number_to_show'] ) ? $this->configuration['number_to_show'] : 10,