From 190e3e458a67fdf2e56f69a042d97b3cd3fa7e5f Mon Sep 17 00:00:00 2001
From: Manuel Herrmann <0@0x17.de>
Date: Wed, 15 Nov 2017 18:06:47 +0100
Subject: [PATCH] allow linebreaks in the config_current_fahrt_id file to
 reduce confusion

---
 registration-system/frameworks/Environment.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registration-system/frameworks/Environment.php b/registration-system/frameworks/Environment.php
index e4e1dbb..1362192 100644
--- a/registration-system/frameworks/Environment.php
+++ b/registration-system/frameworks/Environment.php
@@ -189,7 +189,7 @@ class Environment {
     private function readCurrentTripId() {
         global $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))
                 return $tmp;
         }
-- 
GitLab