From 745056e6d3ce0c5d3f1bb6b0e42b5171da41ee73 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 28 Jan 2009 15:53:08 +0000 Subject: [PATCH] Fix: Bookmark management --- htdocs/bookmarks/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/bookmarks/fiche.php b/htdocs/bookmarks/fiche.php index 86dd94c44dd..9ee190770e1 100644 --- a/htdocs/bookmarks/fiche.php +++ b/htdocs/bookmarks/fiche.php @@ -41,10 +41,10 @@ $target=isset($_GET["target"])?$_GET["target"]:$_POST["target"]; */ if ($action == 'add' || $action == 'addproduct') -{var_dump($_POST); +{ if ($_POST["cancel"]) { - $urlsource=isset($_GET["urlsource"])?$_GET["urlsource"]:(isset($url)?$url:DOL_URL_ROOT.'/bookmarks/liste.php'); + $urlsource=(! empty($_GET["urlsource"]))?$_GET["urlsource"]:((! empty($url))?$url:DOL_URL_ROOT.'/bookmarks/liste.php'); header("Location: ".$urlsource); exit; }