PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | admin/helpers/src/mail/wrapper.php +3 -3 1.7.2 → 1.8.16 View file →
@@ -178,9 +178,9 @@
178 178 }
179 179
180 180 $this->sender = [
181 181 'address' => $address,
182 - 'name' => $name,
182 + 'name' => $address != $name ? $name : null,
183 183 ];
184 184
185 185 return $this;
186 186 }
@@ -191,9 +191,9 @@
191 191 * @return string|null
192 192 */
193 193 public function getSenderMail()
194 194 {
195 - return $this->sender && !empty($this->sender['address']) ? $this->sender['address'] : VBOFactory::getConfig()->get('senderemail');
195 + return !empty($this->sender['address']) ? $this->sender['address'] : VBOFactory::getConfig()->get('senderemail');
196 196 }
197 197
198 198 /**
199 199 * Returns the sender name.
@@ -201,9 +201,9 @@
201 201 * @return string|null
202 202 */
203 203 public function getSenderName()
204 204 {
205 - return $this->sender ? $this->sender['name'] : null;
205 + return !empty($this->sender['name']) ? $this->sender['name'] : VikBooking::getFrontTitle();
206 206 }
207 207
208 208 /**
209 209 * Sets the e-mail recipient(s).