Removed unused action of card.php

This commit is contained in:
Marcos García de La Fuente 2014-11-23 17:06:51 +01:00 committed by Laurent Destailleur
parent 6304895d75
commit 3ab8cff641

View File

@ -111,28 +111,6 @@ if ($action == 'add' || $action == 'addproduct' || $action == 'update')
}
}
if ($action == 'delete')
{
$bookmark=new Bookmark($db);
$bookmark->id=$_GET["bid"];
$bookmark->url=$user->id;
$bookmark->target=$user->id;
$bookmark->title='xxx';
$bookmark->favicon='xxx';
$res=$bookmark->remove();
if ($res > 0)
{
header("Location: ".$_SERVER["PHP_SELF"]);
exit;
}
else
{
setEventMessage($bookmark->error, 'errors');
}
}
/*
* View
*/