Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Rules Engine
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2009 at 06:48 UTC
Updated:
10 Apr 2009 at 11:50 UTC
I made a rules set to enable/disable posting of comments on a specific node, and am trying to use the intelligent save feature of the custom php action
if($enabled)
$status = COMMENT_NODE_READ_WRITE;
else
$status = COMMENT_NODE_DISABLED;
$node->comment = $status;
return array("node" => $node);
When it executes, I get this error:
Fatal error: Unsupported operand types in /home/third/public_html/phred/sites/all/modules/rules/rules/rules.variables.inc on line 164
I do not get the error if I remove the last line, and replace it with a "Save content" action.
Comments
Comment #1
asund commented+1 here. Exact same issue. Works fine with the "Save content" action, so i guess it's not critical.
Comment #2
fagothanks, fixed.