Skip to content
Permalink
Browse files

fix: A non well formed numeric value encountered (PHP 7.1)

  • Loading branch information...
remicollet committed Jun 11, 2016
1 parent 39fffe0 commit 6dd7c3ae2a3d1866c1fd1e45a32170af5d51c97b
Showing with 3 additions and 0 deletions.
  1. +3 −0 inc/dropdown.class.php
@@ -1483,6 +1483,9 @@ static function showTimeStamp($myname, $options=array()) {
$params['max'] = max($params['value'], $params['max']);
// Floor with MINUTE_TIMESTAMP for rounded purpose
if (empty($params['value'])) {
$params['value'] = 0;
}
if (($params['value'] < max($params['min'], 10*MINUTE_TIMESTAMP))
&& $params['addfirstminutes']) {
$params['value'] = floor(($params['value'])/MINUTE_TIMESTAMP)*MINUTE_TIMESTAMP;

0 comments on commit 6dd7c3a

Please sign in to comment.
You can’t perform that action at this time.