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 #1

Updated by Jim Pingle about 11 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!

Actions #2

Updated by Phil Lavin about 11 years ago

Will do :)

Actions #3

Updated by Renato Botelho about 11 years ago

  • Status changed from New to Feedback
  • Target version set to 2.1
  • % Done changed from 0 to 100

Pull request 378 merged

Actions #4

Updated by Renato Botelho about 11 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF