Project

General

Profile

Actions

Bug #2794

closed

PHP Error on NTP

Added by Phil Lavin almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Start date:
02/05/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:
All

Description

Fatal error: Cannot use string offset as an array in /usr/local/www/services_ntpd.php on line 43

Caused by $config['installedpackages']['openntpd'] being an empty string.

Fix is to change line 43 to this:

if ($config['installedpackages']['openntpd'] && empty($config['installedpackages']['openntpd']['config'][0]['interface'])) {

Reproduced on yesterday's 2.1 snapshot.

Actions

Also available in: Atom PDF