Update weeks to check
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 14 May 2018 20:23:04 +0000 (16:23 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 14 May 2018 20:23:04 +0000 (16:23 -0400)
Start with one less than actuall

models/front/events/list.php

index 8d06f92..fd7cea2 100644 (file)
@@ -275,7 +275,9 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
                 // Set default number of events wanted in default view.
                 $total_events_wanted  = 5;
                 // Set default number of weeks to view.
-                $weeks_to_check = 2;
+                // Set this to one less than actual weeks to check.
+                // It will be increased in the do while loop.
+                $weeks_to_check = 1;
 
                 if ( $total_events_wanted > $total_current_events ) {
                     $total_events_wanted = ( $total_current_events > 1 ) ? $total_current_events: 1;