Project

General

Profile

Bug #9558

GPS NTP source PHP errors

Added by Steve Wheeler about 2 months ago. Updated about 2 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Start date:
05/28/2019
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.4.x
Affected Architecture:
All

Description

The output from a non-sync'd GPS set as an NTP source produces PHP errors in the NTP status. Both the main status page and the widget.

PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 74
PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 76
PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 87
PHP Warning:  A non-numeric value encountered in /usr/local/www/widgets/widgets/ntp_status.widget.php on line 89
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 131
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 133
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 118
PHP Warning:  A non-numeric value encountered in /usr/local/www/status_ntpd.php on line 120

Associated revisions

Revision c92dbfc1 (diff)
Added by Jim Pingle about 2 months ago

Ensure NTP values are treated as numbers before use. Fixes #9558

Revision 89b123fb (diff)
Added by Jim Pingle about 2 months ago

Ensure NTP values are treated as numbers before use. Fixes #9558

(cherry picked from commit c92dbfc189ee4cc66726d817f47e5473f8ffe147)

History

#1 Updated by Jim Pingle about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

Also available in: Atom PDF