setTimezone(new DateTimeZone('Europe/Vienna')); $event['starttime'] = $date->getTimestamp(); $event['groupname'] = addslashes($match['tournamentName']); $event['groupid'] = (int) $match['tournamentId']; $event['country'] = addslashes($match['sportCategory']); $str = str_replace('||', '|', $match['description']); $str = trim(str_replace('|', ' ', $str)); $event['event'] = addslashes($str); if (Nuh::$options['bookmaker_id'] == 36) { $teams = explode(' v ', $str); } else { $teams = explode(' - ', $str); } $event['home'] = addslashes($teams[0]); $event['away'] = addslashes($teams[1]); return $event; } }