From 98cb4d750f8d9786c20365c4f92749916bcb75b3 Mon Sep 17 00:00:00 2001 From: Lucas Woltmann Date: Tue, 22 Jul 2014 12:07:17 +0200 Subject: [PATCH] the patrons file now supports line breaks at its end --- libs/questionnaireLib.php | 3 ++- questionnaires/namenspatronen.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/questionnaireLib.php b/libs/questionnaireLib.php index 0220609..7bac630 100755 --- a/libs/questionnaireLib.php +++ b/libs/questionnaireLib.php @@ -93,7 +93,8 @@ $lines = explode("\n", $rawData); $data = array(); for ($i = 0; $i < count($lines); $i++) - $data[trim($lines[$i])] = trim($lines[$i]); + if(trim($lines[$i]) != "") + $data[trim($lines[$i])] = trim($lines[$i]); return $data; } diff --git a/questionnaires/namenspatronen.txt b/questionnaires/namenspatronen.txt index 3c7e1dc..ef44a02 100755 --- a/questionnaires/namenspatronen.txt +++ b/questionnaires/namenspatronen.txt @@ -1,3 +1,4 @@ Peter Chen Richard Stallman -Konrad Zuse \ No newline at end of file +Konrad Zuse +John von Neuman