projects
/
WP-Plugins
/
glm-member-db-itinerary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fe87c6
)
Fix error if session doesn't exists
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 23 May 2019 13:46:32 +0000
(09:46 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 23 May 2019 13:46:32 +0000
(09:46 -0400)
take care of php notices
models/admin/ajax/itineraryList.php
patch
|
blob
|
history
diff --git
a/models/admin/ajax/itineraryList.php
b/models/admin/ajax/itineraryList.php
index
432e80e
..
65f6a41
100644
(file)
--- a/
models/admin/ajax/itineraryList.php
+++ b/
models/admin/ajax/itineraryList.php
@@
-141,7
+141,11
@@
class GlmMembersAdmin_ajax_itineraryList //extends GlmDataMemberInfo
}
// trigger_error( print_r( $_SESSION, true ), E_USER_NOTICE );
- echo count( $_SESSION['travel-list'] );
+ if ( isset( $_SESSION['travel-list'] ) ) {
+ echo count( $_SESSION['travel-list'] );
+ } else {
+ echo '0';
+ }
return true;