Skip to content

Commit

Permalink
fix: A non well formed numeric value encountered (PHP 7.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jun 11, 2016
1 parent 39fffe0 commit 6dd7c3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/dropdown.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6dd7c3a

Please sign in to comment.