1
For those who have used the XOOPS Time Tracking module, I was wondering why the code doesn't let you delete tasks?
else if( $Action == "confirm_delete" )
{
$TaskUID = getTaskOwner( $TaskID );
$dUID = intval( $UID );
$dTaskUID = intval( $TaskUID );
if( dUID == -1 || dTaskUID == -1 || $dTaskUID != $dUID )
redirect_header("u_review.php", 3, "You cannot delete other users work" );
else
{
$sql = "DELETE FROM ".$xoopsDB->prefix("xtt_task_data");
$sql .= " WHERE TaskID = ".$TaskID;
$xoopsDB->query($sql);
$sMessage = "Deleted Your Task";
redirect_header("u_review.php", 1, $sMessage );
}
}