1
mlaiter
XTT Delete Error
  • 2007/4/9 1:17

  • mlaiter

  • Just popping in

  • Posts: 1

  • Since: 2007/4/9 0


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 );
}
}

Login

Who's Online

472 user(s) are online (394 user(s) are browsing Support Forums)


Members: 0


Guests: 472


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits