We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aef3c04 commit 3cd6244Copy full SHA for 3cd6244
okapi/services/logs/submit.php
@@ -64,7 +64,7 @@ private static function _call(OkapiRequest $request)
64
if ($tmp)
65
{
66
$when = strtotime($tmp);
67
- if (!$when)
+ if ($when < 1)
68
throw new InvalidParam('when', "'$tmp' is not in a valid format or is not a valid date.");
69
if ($when > time() + 5*60)
70
throw new CannotPublishException(_("You are trying to publish a log entry with a date in future. ".
0 commit comments