Closed (fixed)
Project:
Comment Access
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2012 at 08:07 UTC
Updated:
8 Feb 2017 at 11:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Fidelix commentedApplying that patch did not fix the problem for me.
Comment #2
Fidelix commentedThe module is unusable on PHP 5.4.
I see that some modules with the same problem fixed it in their end, so I'm bumping this to major.
Comment #3
Sean-Khan commentedI confirm, I get the error & that the patch has no effect for me either.
Comment #4
alan d. commented;)
Comment #4.0
alan d. commentedSorry, line 248 not 250
Comment #5
pradeep22saini commentedforeach ($conditions as $key => &$condition) {
+ if(is_array($condition)){
if ($condition['field'] == 'c.status' && $condition['value'] == COMMENT_PUBLISHED) {
unset($conditions[$key]);
}
+ }
}
I have added + if(is_array($condition)){ this condition of Is_array() and it removed the error. I don't know how to make patch. But adding this solved my problem.
Comment #6
loze commentedPatch in #4 works for me. Thanks!
Comment #7
JBecker commentedPatch #4 works.
Comment #8
formatC'vt commentedWorks, but hardcoding for '#conjunction' this is bad solution.
We should check existing keys. Patch attached.
Comment #9
formatC'vt commentedthanks, committed
Comment #12
cheans commentedPatch #4 works fine for me. Thanks~~
Comment #13
mausolos commented#8 patch worked for me against php7