Development

#4529 (overloaded property sfAssetActions::$files on PHP 5.2.0-8+etch11)

You must first sign up to be able to contribute.

Ticket #4529 (closed defect: wontfix)

Opened 5 years ago

Last modified 4 years ago

overloaded property sfAssetActions::$files on PHP 5.2.0-8+etch11

Reported by: aoualim Assigned to: blacksun
Priority: minor Milestone: plugins
Component: sfAssetsLibraryPlugin Version: 1.0.17
Keywords: Cc:
Qualification: Unreviewed

Description

Notice: Indirect modification of overloaded property sfAssetActions::$files has no effect in plugins/sfAssetsLibraryPlugin/modules/sfAsset/lib/BasesfAssetActions.class.php on line 52
I solved this error with the following change:
line 47 change

$this->files = sfAssetPeer::doSelect($c);

with

$files = sfAssetPeer::doSelect($c);
$this->files =$files;

line 52 change :

foreach ($this->files as $file)

with

foreach ($files as $file)

Change History

03/16/09 09:51:46 changed by francois

  • status changed from new to closed.
  • resolution set to wontfix.

Isn't it something that should be fixed in sfComponent magic methods, instead of in the plugin?