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

eugenmayer’s picture

Status: Active » Fixed

Returns 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

shp’s picture

I guess the 0 key is the problem

Yes, you are right.

eugenmayer’s picture

Status: Fixed » Closed (fixed)

released in in 1.4