Actions
Bug #2794
closedPHP Error on NTP
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