projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d01db
)
Update weeks to check
author
Steve Sutton
<steve@gaslightmedia.com>
Mon, 14 May 2018 20:23:04 +0000
(16:23 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/models/front/events/list.php
b/models/front/events/list.php
index
8d06f92
..
fd7cea2
100644
(file)
--- a/
models/front/events/list.php
+++ b/
models/front/events/list.php
@@
-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;