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(-) (limited to 'web/html/packages.php') diff --git a/web/html/packages.php b/web/html/packages.php index fe69449..139b9c8 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-70-g09d2