From 55eb55a75faf38586ba646ac7e446db700d11ada Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 30 Mar 2011 11:06:20 +0200 Subject: Fix PHP undefined notice in "web/html/packages.php". Signed-off-by: Lukas Fleischer --- web/html/packages.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/html/packages.php b/web/html/packages.php index fe69449e..139b9c89 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -81,7 +81,12 @@ if (isset($_GET['ID'])) { if (!$_GET['ID'] = intval($_GET['ID'])) { print __("Error trying to retrieve package details.")."
\n"; } else { - package_details($_GET['ID'], $_COOKIE["AURSID"]); + if (isset($_COOKIE["AURSID"])) { + package_details($_GET['ID'], $_COOKIE["AURSID"]); + } + else { + package_details($_GET['ID'], null); + } } } else { if (!isset($_GET['K']) && !isset($_GET['SB'])) { -- cgit v1.2.3-24-g4f1b