Actions
Bug #2795
closed
PL
PHP Error on pkg_edit.php
Bug #2795:
PHP Error on pkg_edit.php
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/pkg_edit.php on line 109
Error also exists on line 113.
Fix by changing lines 109 and 113 to the following:
109: if($config['installedpackages'] && !is_array($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']))
113: if ($config['installedpackages'] && (count($config['installedpackages'][xml_safe_fieldname($pkg['name'])]['config']) > 0)
JP Updated by Jim Pingle over 13 years ago
Can you submit these as pull requests on github since you have suggested (and presumably tested) the fixes? Less room for error that way, and much easier to review and commit on our end.
Thanks!
PL Updated by Phil Lavin over 13 years ago
Will do :)
RB Updated by Renato Botelho over 13 years ago
- Status changed from New to Feedback
- Target version set to 2.1
- % Done changed from 0 to 100
Pull request 378 merged
RB Updated by Renato Botelho over 13 years ago
- Status changed from Feedback to Closed
Actions