Events Manager - Version 5.9.7.1

Version Description

  • fixed minor typo in new email setting description
  • fixed CSV booking export files turning out blank due to change in EM_Bookings::__isset() in 5.9.7
Download this release

Release Info

Developer netweblogic
Plugin Icon 128x128 Events Manager
Version 5.9.7.1
Comparing to
See all releases

Code changes from version 5.9.7 to 5.9.7.1

admin/em-options.php CHANGED
@@ -607,7 +607,7 @@ function em_admin_option_box_email(){
607
  em_options_input_text ( 'Mail sending port', 'dbem_rsvp_mail_port', __( "The port through which you e-mail notifications will be sent. Make sure the firewall doesn't block this port", 'events-manager') );
608
  em_options_radio_binary ( __( 'Use SMTP authentication?', 'events-manager'), 'dbem_rsvp_mail_SMTPAuth', __( 'SMTP authentication is often needed. If you use Gmail, make sure to set this parameter to Yes', 'events-manager') );
609
  em_options_select ( __( 'SMTP Encryption', 'events-manager'), 'dbem_smtp_encryption', array ('0' => __( 'None', 'events-manager'), 'ssl' => 'SSL', 'tls' => 'TLS' ), __( 'Encryption is always recommended if your SMTP server supports it. If your server supports TLS, this is also the most recommended method.', 'events-manager') );
610
- em_options_radio_binary ( __( 'AutoTLS', 'events-manager'), 'dbem_smtp_autotls', __( 'We recommend leaving this on unless you are experiencing issues configuring your eamil.', 'events-manager') );
611
  em_options_input_text ( 'SMTP host', 'dbem_smtp_host', __( "The SMTP host. Usually it corresponds to 'localhost'. If you use Gmail, set this value to 'tls://smtp.gmail.com:587'.", 'events-manager') );
612
  em_options_input_text ( __( 'SMTP username', 'events-manager'), 'dbem_smtp_username', __( "Insert the username to be used to access your SMTP server.", 'events-manager') );
613
  em_options_input_password ( __( 'SMTP password', 'events-manager'), "dbem_smtp_password", __( "Insert the password to be used to access your SMTP server", 'events-manager') );
607
  em_options_input_text ( 'Mail sending port', 'dbem_rsvp_mail_port', __( "The port through which you e-mail notifications will be sent. Make sure the firewall doesn't block this port", 'events-manager') );
608
  em_options_radio_binary ( __( 'Use SMTP authentication?', 'events-manager'), 'dbem_rsvp_mail_SMTPAuth', __( 'SMTP authentication is often needed. If you use Gmail, make sure to set this parameter to Yes', 'events-manager') );
609
  em_options_select ( __( 'SMTP Encryption', 'events-manager'), 'dbem_smtp_encryption', array ('0' => __( 'None', 'events-manager'), 'ssl' => 'SSL', 'tls' => 'TLS' ), __( 'Encryption is always recommended if your SMTP server supports it. If your server supports TLS, this is also the most recommended method.', 'events-manager') );
610
+ em_options_radio_binary ( __( 'AutoTLS', 'events-manager'), 'dbem_smtp_autotls', __( 'We recommend leaving this on unless you are experiencing issues configuring your email.', 'events-manager') );
611
  em_options_input_text ( 'SMTP host', 'dbem_smtp_host', __( "The SMTP host. Usually it corresponds to 'localhost'. If you use Gmail, set this value to 'tls://smtp.gmail.com:587'.", 'events-manager') );
612
  em_options_input_text ( __( 'SMTP username', 'events-manager'), 'dbem_smtp_username', __( "Insert the username to be used to access your SMTP server.", 'events-manager') );
613
  em_options_input_password ( __( 'SMTP password', 'events-manager'), "dbem_smtp_password", __( "Insert the password to be used to access your SMTP server", 'events-manager') );
classes/em-booking.php CHANGED
@@ -191,6 +191,7 @@ class EM_Booking extends EM_Object{
191
  public function __isset( $prop ){
192
  if( $prop == 'timestamp' ) return $this->date()->getTimestamp() > 0;
193
  if( $prop == 'language' ) return !empty($this->booking_meta['lang']);
 
194
  }
195
 
196
  function get_notes(){
191
  public function __isset( $prop ){
192
  if( $prop == 'timestamp' ) return $this->date()->getTimestamp() > 0;
193
  if( $prop == 'language' ) return !empty($this->booking_meta['lang']);
194
+ return parent::__isset( $prop );
195
  }
196
 
197
  function get_notes(){
classes/em-bookings.php CHANGED
@@ -2,13 +2,13 @@
2
  /**
3
  * Deals with the booking info for an event
4
  * @author marcus
5
- *
6
  */
7
  class EM_Bookings extends EM_Object implements Iterator{
8
 
9
  /**
10
  * Array of EM_Booking objects for a specific event
11
- * @var array
12
  */
13
  protected $bookings;
14
  /**
@@ -86,13 +86,12 @@ class EM_Bookings extends EM_Object implements Iterator{
86
  * @param string $var
87
  * @return boolean
88
  */
89
- public function __isset( $var ){
90
  //if isset is invoked on $EM_Bookings->bookings then we'll assume it's only set if the bookings property is empty, not if null.
91
- $result = false;
92
- if( $var == 'bookings' ){
93
- $result = $this->bookings !== null;
94
  }
95
- return parent::__isset( $var );
96
  }
97
 
98
  public function load( $refresh = false ){
2
  /**
3
  * Deals with the booking info for an event
4
  * @author marcus
5
+ * @property EM_Booking[] $bookings
6
  */
7
  class EM_Bookings extends EM_Object implements Iterator{
8
 
9
  /**
10
  * Array of EM_Booking objects for a specific event
11
+ * @var EM_Booking[]
12
  */
13
  protected $bookings;
14
  /**
86
  * @param string $var
87
  * @return boolean
88
  */
89
+ public function __isset( $prop ){
90
  //if isset is invoked on $EM_Bookings->bookings then we'll assume it's only set if the bookings property is empty, not if null.
91
+ if( $prop == 'bookings' ){
92
+ return $this->bookings !== null;
 
93
  }
94
+ return parent::__isset( $prop );
95
  }
96
 
97
  public function load( $refresh = false ){
classes/em-categories.php CHANGED
@@ -33,14 +33,14 @@ class EM_Categories extends EM_Taxonomy_Terms {
33
 
34
  /**
35
  * Legacy overload for use of empty($this->categories)
36
- * @param string $var_name
37
  * @return boolean
38
  */
39
- function __isset( $var_name ){
40
- if( $var_name == 'categories' ){
41
  return !empty($this->terms);
42
  }
43
- return !empty($this->$var_name);
44
  }
45
 
46
  //Functions we won't need when PHP 5.3 minimum allows for use of LSB
33
 
34
  /**
35
  * Legacy overload for use of empty($this->categories)
36
+ * @param string $prop
37
  * @return boolean
38
  */
39
+ function __isset( $prop ){
40
+ if( $prop == 'categories' ){
41
  return !empty($this->terms);
42
  }
43
+ return parent::__isset( $prop );
44
  }
45
 
46
  //Functions we won't need when PHP 5.3 minimum allows for use of LSB
classes/em-object.php CHANGED
@@ -1132,12 +1132,12 @@ class EM_Object {
1132
  }
1133
  }
1134
 
1135
- public function __isset( $shortname ){
1136
- if( !empty($this->shortnames[$shortname]) ){
1137
- $property = $this->shortnames[$shortname];
1138
  return !empty($this->{$property});
1139
  }
1140
- return false;
1141
  }
1142
 
1143
  /**
1132
  }
1133
  }
1134
 
1135
+ public function __isset( $prop ){
1136
+ if( !empty($this->shortnames[$prop]) ){
1137
+ $property = $this->shortnames[$prop];
1138
  return !empty($this->{$property});
1139
  }
1140
+ return !empty($this->{$prop});
1141
  }
1142
 
1143
  /**
classes/em-tags.php CHANGED
@@ -31,14 +31,14 @@ class EM_Tags extends EM_Taxonomy_Terms {
31
 
32
  /**
33
  * Legacy overload for use of empty($this->tags)
34
- * @param string $var_name
35
  * @return boolean
36
  */
37
- function __isset( $var_name ){
38
- if( $var_name == 'tags' ){
39
  return !empty($this->terms);
40
  }
41
- return !empty($this->$var_name);
42
  }
43
 
44
  //Functions we won't need when PHP 5.3 minimum allows for use of LSB
31
 
32
  /**
33
  * Legacy overload for use of empty($this->tags)
34
+ * @param string $prop
35
  * @return boolean
36
  */
37
+ function __isset( $prop ){
38
+ if( $prop == 'tags' ){
39
  return !empty($this->terms);
40
  }
41
+ return parent::__isset( $prop );
42
  }
43
 
44
  //Functions we won't need when PHP 5.3 minimum allows for use of LSB
classes/em-ticket.php CHANGED
@@ -124,7 +124,7 @@ class EM_Ticket extends EM_Object{
124
  if( !$this->end()->valid ) return 0;
125
  return $this->end()->getTimestampWithOffset();
126
  }
127
- return null;
128
  }
129
 
130
  public function __set( $prop, $val ){
@@ -132,10 +132,10 @@ class EM_Ticket extends EM_Object{
132
  $prop = 'ticket_'.$prop;
133
  }
134
  if( $prop == 'ticket_start' ){
135
- $this->$prop = $val;
136
  $this->start = false;
137
  }elseif( $prop == 'ticket_end' ){
138
- $this->$prop = $val;
139
  $this->end = false;
140
  }
141
  //These are deprecated and should not be used. Either use the class start() or end() equivalent methods
@@ -148,9 +148,9 @@ class EM_Ticket extends EM_Object{
148
  $EM_DateTime = new EM_DateTime( $val, $this->get_event()->get_timezone() );
149
  if( !$EM_DateTime->valid ) return false;
150
  $when_prop = 'ticket_'.$prop;
151
- $this->$when_prop = $EM_DateTime->getDateTime();
152
  }
153
- $this->$prop = $val;
154
  }
155
 
156
  public function __isset( $prop ){
@@ -164,6 +164,7 @@ class EM_Ticket extends EM_Object{
164
  $prop = $prop == 'name' || $prop == 'description' ? 'ticket_'.$prop : $prop;
165
  return !empty($this->{$prop});
166
  }
 
167
  }
168
 
169
  function get_notes(){
124
  if( !$this->end()->valid ) return 0;
125
  return $this->end()->getTimestampWithOffset();
126
  }
127
+ return parent::__get( $var );
128
  }
129
 
130
  public function __set( $prop, $val ){
132
  $prop = 'ticket_'.$prop;
133
  }
134
  if( $prop == 'ticket_start' ){
135
+ $this->{$prop} = $val;
136
  $this->start = false;
137
  }elseif( $prop == 'ticket_end' ){
138
+ $this->{$prop} = $val;
139
  $this->end = false;
140
  }
141
  //These are deprecated and should not be used. Either use the class start() or end() equivalent methods
148
  $EM_DateTime = new EM_DateTime( $val, $this->get_event()->get_timezone() );
149
  if( !$EM_DateTime->valid ) return false;
150
  $when_prop = 'ticket_'.$prop;
151
+ $this->{$when_prop} = $EM_DateTime->getDateTime();
152
  }
153
+ parent::__set( $prop, $val );
154
  }
155
 
156
  public function __isset( $prop ){
164
  $prop = $prop == 'name' || $prop == 'description' ? 'ticket_'.$prop : $prop;
165
  return !empty($this->{$prop});
166
  }
167
+ return parent::__isset( $prop );
168
  }
169
 
170
  function get_notes(){
em-actions.php CHANGED
@@ -673,12 +673,10 @@ function em_init_actions() {
673
  $handle = fopen("php://output", "w");
674
  fputcsv($handle, $EM_Bookings_Table->get_headers(true), $delimiter);
675
  while( !empty($EM_Bookings->bookings) ){
676
- foreach( $EM_Bookings->bookings as $EM_Booking ) {
677
  //Display all values
678
- /* @var $EM_Booking EM_Booking */
679
- /* @var $EM_Ticket_Booking EM_Ticket_Booking */
680
  if( $show_tickets ){
681
- foreach($EM_Booking->get_tickets_bookings()->tickets_bookings as $EM_Ticket_Booking){
682
  $row = $EM_Bookings_Table->get_row_csv($EM_Ticket_Booking);
683
  fputcsv($handle, $row, $delimiter);
684
  }
673
  $handle = fopen("php://output", "w");
674
  fputcsv($handle, $EM_Bookings_Table->get_headers(true), $delimiter);
675
  while( !empty($EM_Bookings->bookings) ){
676
+ foreach( $EM_Bookings->bookings as $EM_Booking ) { /* @var EM_Booking $EM_Booking */
677
  //Display all values
 
 
678
  if( $show_tickets ){
679
+ foreach($EM_Booking->get_tickets_bookings()->tickets_bookings as $EM_Ticket_Booking){ /* @var EM_Ticket_Booking $EM_Ticket_Booking */
680
  $row = $EM_Bookings_Table->get_row_csv($EM_Ticket_Booking);
681
  fputcsv($handle, $row, $delimiter);
682
  }
events-manager.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Events Manager
4
- Version: 5.9.7
5
  Plugin URI: http://wp-events-plugin.com
6
  Description: Event registration and booking management for WordPress. Recurring events, locations, google maps, rss, ical, booking registration and more!
7
  Author: Marcus Sykes
1
  <?php
2
  /*
3
  Plugin Name: Events Manager
4
+ Version: 5.9.7.1
5
  Plugin URI: http://wp-events-plugin.com
6
  Description: Event registration and booking management for WordPress. Recurring events, locations, google maps, rss, ical, booking registration and more!
7
  Author: Marcus Sykes
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: bookings, calendar, tickets, events, buddypress, event management, google
5
  Text Domain: events-manager
6
  Requires at least: 4.8
7
  Tested up to: 5.3
8
- Stable tag: 5.9.7
9
  Requires PHP: 5.3
10
 
11
  Fully featured event registration management including recurring events, locations management, calendar, Google map integration, booking management
@@ -111,6 +111,10 @@ See our [FAQ](http://wp-events-plugin.com/documentation/faq/) page, which is upd
111
  6. Manage attendees with various booking reports
112
 
113
  == Changelog ==
 
 
 
 
114
  = 5.9.7 =
115
  * fixed google calendar add-to link not including location town/zip/state
116
  * fixed minor PHP warnings
5
  Text Domain: events-manager
6
  Requires at least: 4.8
7
  Tested up to: 5.3
8
+ Stable tag: 5.9.7.1
9
  Requires PHP: 5.3
10
 
11
  Fully featured event registration management including recurring events, locations management, calendar, Google map integration, booking management
111
  6. Manage attendees with various booking reports
112
 
113
  == Changelog ==
114
+ = 5.9.7.1 =
115
+ * fixed minor typo in new email setting description
116
+ * fixed CSV booking export files turning out blank due to change in EM_Bookings::__isset() in 5.9.7
117
+
118
  = 5.9.7 =
119
  * fixed google calendar add-to link not including location town/zip/state
120
  * fixed minor PHP warnings