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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user