Actions
Bug #9067
closedPHP error when installing first package with empty installedpackages tag
Start date:
10/25/2018
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.4.4
Affected Architecture:
All
Description
If the configuration contains only <installedpackages></installedpackages>
then installing a package will fail with a PHP error:
[25-Oct-2018 19:35:51 Etc/UTC] PHP Warning: Illegal string offset 'package' in /etc/inc/pkg-utils.inc on line 790 [25-Oct-2018 19:35:51 Etc/UTC] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /etc/inc/pkg-utils.inc:790 Stack trace: #0 /etc/rc.packages(74): install_package_xml('Cron') #1 {main} thrown in /etc/inc/pkg-utils.inc on line 790
Actions