Closed (fixed)
Project:
Content moderation
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2010 at 21:03 UTC
Updated:
1 May 2010 at 12:58 UTC
The reason is in the _content_moderation_moderate_node_type(), in the "if" expression. Correct string:
if( array_search('node_content_moderation',$var,true) !== false ) {
(see documentation, what array_search() returns)
Comments
Comment #1
eugenmayer commentedReturns the key for needle if it is found in the array, FALSE otherwise.
I guess the 0 key is the problem.
Will be fixed in the next released
Comment #2
shp commentedYes, you are right.
Comment #3
eugenmayer commentedreleased in in 1.4