Commit cb2fbb88eed77a4c571db8f5f7ecb9140cfb1cee

Authored by Elena.Budnik
1 parent e8001aa1

TimeTable upload : txt replace tab (multi space) by one space

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
php/classes/TimeTableMgr.php
... ... @@ -164,7 +164,7 @@ class TimeTableMgr extends AmdaObjectMgr
164 164 foreach ($lines as $line){
165 165 if ($line[0] == '#') $description=$description.PHP_EOL.substr($line,1,-1);
166 166 else {
167   - $date = explode(' ',$line);
  167 + $date = explode(' ', preg_replace('!\s+!', ' ', $line));
168 168 if (!strtotime(trim($date[0]))) {
169 169 $description=$description.PHP_EOL.$line;
170 170 continue;
... ...