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:
3493bab
)
Don't add location unless they have loc or part set
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 27 Apr 2016 20:03:45 +0000
(16:03 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 27 Apr 2016 20:03:45 +0000
(16:03 -0400)
models/admin/management/events.php
patch
|
blob
|
history
diff --git
a/models/admin/management/events.php
b/models/admin/management/events.php
index
189ee06
..
bbd7958
100644
(file)
--- a/
models/admin/management/events.php
+++ b/
models/admin/management/events.php
@@
-956,13
+956,7
@@
class GlmMembersAdmin_management_events extends GlmDataEventsManagement
$recurId = $this->wpdb->insert_id;
$Recurrences->createRecurrenceTimesEntries( $recurId, true, true );
// location for the event
- $hasLocation = (
- ($event['loc'] || $event['place'])
- || ($event['contact'])
- || ($event['phone'])
- || ($event['url'])
- || ($event['email'])
- );
+ $hasLocation = ($event['loc'] || $event['place']);
if ( $hasLocation ) {
$locationData = $locationFormat = array();
$locationData['event'] = $eventId;