Ticket #451 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

PHP Notice: Undefined variable: data in images.php on line 128

Reported by: anonymous Owned by: yermol
Priority: normal Milestone: Version 1.0
Component: Plugin_ImageManager Version: trunk
Severity: trivial Keywords: data php notice images.php
Cc:

Description

The is a slight error of assigning to undefined $data variable in plugins/ImageManager/images.php on line 128. On some PHP setups this resluts in outputting the error message in thumbnails area of insert image dialog.

To fix it, simply insert:

$data = ;

before the for loop in asc2hex() function in file mentioned.

(sorry for not issuing the patch file for that but this would be hard in my current windows setup. I hope that this issue is trivial).

Change History

Changed 8 years ago by anonymous

The code should be (wiki ate it):

 $data = '';

Changed 8 years ago by niko

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.