mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix activity date validate
This commit is contained in:
parent
b29646cec5
commit
9efdcd2b25
|
@ -201,7 +201,9 @@ class ActionStream extends Action
|
|||
$oViewer = $this->Viewer_GetLocalViewer();
|
||||
|
||||
$oViewer->Assign('events', $aEvents, true);
|
||||
if (preg_match('#^\d{4}\-\d{1,2}\-\d{1,2}$#', getRequestStr('date_last'))) {
|
||||
$oViewer->Assign('dateLast', getRequestStr('date_last'), true);
|
||||
}
|
||||
|
||||
if (count($aEvents)) {
|
||||
$this->Viewer_AssignAjax('last_id', end($aEvents)->getId(), true);
|
||||
|
|
Loading…
Reference in a new issue