Project

General

Profile

Actions

Bug #2795

closed

PHP Error on pkg_edit.php

Added by Phil Lavin about 11 years ago. Updated about 11 years ago.

Status:
Closed
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/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)

Actions

Also available in: Atom PDF