Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Kevin Adametz
fcaca9fbe5 On master: Tower Auto-Stash: 2018-06-21 09:03:54 +0200 2018-06-21 09:03:54 +02:00
Kevin Adametz
1372d676f4 index on master: e8a90c7 birthay bug - check is object 2018-06-21 09:03:54 +02:00
Kevin Adametz
e8a90c720a birthay bug - check is object 2018-06-21 09:03:41 +02:00
2 changed files with 2 additions and 1 deletions

View file

@ -88,7 +88,7 @@ class Traveler
*/
public function getBirthDate()
{
if(($this->birthDate instanceof String) && !strtotime($this->birthDate)){
if(!is_object($this->birthDate) && !strtotime($this->birthDate)){
return '01.01.1900';
}
return $this->birthDate;

View file

@ -13,6 +13,7 @@ use Monolog\Logger;
abstract class SternToursCrmExporter
{
const API_URL = 'http://www.cms.stern-tours.net/api';
//const API_URL = 'http://cms-stern-torus.local/api';
const API_KEY = 'f6077389c9ce710e554763a5de02c8ec';
const API_USER_ID = 15; // 'apiuser'
const WEBSITE_ID = 1; // 'sterntours.de'