Update oebbApi_v0.3.php
Add __destruct()
This commit is contained in:
parent
3f7df3448c
commit
2634585d12
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ class oebbApi {
|
|||
$_SESSION["oebbApi"]["getDetails"] = false;
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
session_destroy();
|
||||
}
|
||||
|
||||
public function get($departure, $arrival, $amount, $date = null, $time = null, $timeMode = false) {
|
||||
$date = ($date == null ? date("d.m.Y") : $date);
|
||||
$time = ($time == null ? date("H:i") : $time);
|
||||
|
|
Loading…
Reference in a new issue