ACC SHELL
<?php
// check if root comment exists
if ( $_POST['commentID'] == 0 )
{
$this->getDb()->insertItem( 'comment', array() );
$newCommentID = $this->getDb()->getLastID();
$_POST['commentID'] = $newCommentID;
}
//
if ( ( !isset( $_POST['visibilityStartDate'] ) ) || ( $_POST['visibilityStartDate'] == '' ) || ( $_POST['visibilityStartDate'] == '0000-00-00' ) )
{
$_POST['createdDateTimeOrder'] = $_POST['createdDateTime'];
}
else
{
$_POST['createdDateTimeOrder'] = $_POST['visibilityStartDate'];
}
?>
ACC SHELL 2018