3
0
Fork 0
mirror of https://github.com/fsr/eseeva synced 2024-11-15 08:53:11 +01:00

the patrons file now supports line breaks at its end

This commit is contained in:
Lucas Woltmann 2014-07-22 12:07:17 +02:00
parent 2bda00f9fb
commit 98cb4d750f
2 changed files with 4 additions and 2 deletions

View file

@ -93,6 +93,7 @@
$lines = explode("\n", $rawData); $lines = explode("\n", $rawData);
$data = array(); $data = array();
for ($i = 0; $i < count($lines); $i++) for ($i = 0; $i < count($lines); $i++)
if(trim($lines[$i]) != "")
$data[trim($lines[$i])] = trim($lines[$i]); $data[trim($lines[$i])] = trim($lines[$i]);
return $data; return $data;

View file

@ -1,3 +1,4 @@
Peter Chen Peter Chen
Richard Stallman Richard Stallman
Konrad Zuse Konrad Zuse
John von Neuman