Actions
Bug #2795
closedPHP 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)
Updated by Jim Pingle almost 12 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!
Updated by Renato Botelho almost 12 years ago
- Status changed from New to Feedback
- Target version set to 2.1
- % Done changed from 0 to 100
Pull request 378 merged
Updated by Renato Botelho almost 12 years ago
- Status changed from Feedback to Closed
Actions