Thursday 02 August 2007 4:22:49 am
Hi,
I want to use the hide.php script to hide contents. Everything seems to be ok but contents are not hide. Athe end of the script we've got this :
...
$date = $dateAttribute->content();
$retractDate = $date->attribute( 'timestamp' );
mail("[email protected]","dateAttributeName","{$retractDate} - {$currrentDate}");
if ( $retractDate > 0 && $retractDate < $currrentDate )
{
eZContentObjectTreeNode::hideSubTree( $node );
if ( !$isQuiet )
{
$cli->output( 'Hiding node : ' . $node->attribute( 'node_id' ) );
}
}
...
And it appears in my tracking email that $retractDate is always greater than the $currrentDate variable.
It doesn't make sense to me because I have contents with an older date than the current date + I have more than 150 contents but recieved less than 50 mails.
Any idea?
Regards.
Laurent
|