Skip to content
Snippets Groups Projects
Commit 78c54fbf authored by Daniel Bucher's avatar Daniel Bucher
Browse files

Merge branch 'feature-fahrt-id-accept-linebreaks' into 'master'

allow linebreaks in the config_current_fahrt_id file to reduce confusion

See merge request !1
parents 121b4405 190e3e45
No related branches found
No related tags found
1 merge request!1allow linebreaks in the config_current_fahrt_id file to reduce confusion
...@@ -189,7 +189,7 @@ class Environment { ...@@ -189,7 +189,7 @@ class Environment {
private function readCurrentTripId() { private function readCurrentTripId() {
global $config_current_fahrt_file; global $config_current_fahrt_file;
if (file_exists($config_current_fahrt_file)) { if (file_exists($config_current_fahrt_file)) {
$tmp = file_get_contents($config_current_fahrt_file); $tmp = trim(file_get_contents($config_current_fahrt_file));
if (is_numeric($tmp)) if (is_numeric($tmp))
return $tmp; return $tmp;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment