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
|
@ -11,6 +11,10 @@ class oebbApi {
|
|||
$_SESSION["oebbApi"]["get"] = false;
|
||||
$_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);
|
||||
|
|
Loading…
Reference in a new issue