Closed (fixed)
Project:
Leech
Version:
4.7.x-1.3
Component:
leech
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2007 at 15:51 UTC
Updated:
22 Jan 2007 at 15:01 UTC
my website is running on php 5.2.0 and i have this error every time cron is running or i manualy leech data from sites.
Fatal error: Cannot use object of type stdClass as array in /***/modules/leech.module on line 321
* i removed my site path from error.
i search over net and seems that this error is from php 5. can some one help me?
Comments
Comment #1
alex_b commentedHi slik,
The problem ocurs here:
because there is no explicit check, wether $object->leech_news_item is an array. Please try this instead:
please let me know, wether this helps.
Alex
Comment #2
alex_b commentedSlik, you sent me a private message today that the fix works. I already commit it to 4.7.x-1.x-dev. Next release version that contains the fix will be 4.7.x-1.5
Alex
Comment #3
alex_b commentedComment #4
(not verified) commented