console : log the history with timestamp

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4276 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-07-08 12:10:15 +00:00
parent 6afe1b5c52
commit 4674706687

View File

@@ -805,7 +805,7 @@ class console
foreach ($historyArr as $line) foreach ($historyArr as $line)
{ {
@list ($time, $command) = @explode (" ", $line, 2); @list ($time, $command) = @explode (" ", $line, 2);
if ($time === null || $command === null) if ($time === null || $command === null || ! ctype_digit ($time))
continue; continue;
$this->history[$time] = $command; $this->history[$time] = $command;
} }