Correcting logic
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 4 Apr 2019 12:20:11 +0000 (08:20 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 4 Apr 2019 12:20:11 +0000 (08:20 -0400)
end ) was in wrong place.

models/front/events/baseAction.php

index 803c47b..3c85489 100644 (file)
@@ -601,7 +601,7 @@ abstract class GlmMembersFront_events_baseAction extends GlmDataEvents
     public function getEventRecurDays( $event )
     {
         $eventDates = '';
-        if ( isset( $event['recurrences'] ) && count( $event['times'] > 1) ) {
+        if ( isset( $event['recurrences'] ) && count( $event['times'] ) > 1 ) {
             foreach ( $event['recurrences'] as $recur ) {
                 if ( $recur['recurring']['name'] == 'Yes'  && $recur['day_of_week']['names'] ) {
                     if ( $recur['week_of_month']['names'] ) {