From ef3a73a215c74b42e82819ffc944844d6c16359a Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 19 Jan 2010 22:59:26 +0000 Subject: Fix E_NOTICE when calling alltags.php without any parameter git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@619 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/alltags.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'www/alltags.php') diff --git a/www/alltags.php b/www/alltags.php index 52a42b0..7a6157b 100644 --- a/www/alltags.php +++ b/www/alltags.php @@ -22,12 +22,13 @@ require_once '../src/SemanticScuttle/header.php'; /* Service creation: only useful services are created */ -$b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag'); -$cacheservice =SemanticScuttle_Service_Factory::get('Cache'); +$b2tservice = SemanticScuttle_Service_Factory::get('Bookmark2Tag'); +$cacheservice = SemanticScuttle_Service_Factory::get('Cache'); - - -list($url, $user) = explode('/', $_SERVER['PATH_INFO']); +list($url, $user) = explode( + '/', + isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '/' +); if (!$user) { header('Location: '. createURL('populartags')); exit; -- cgit v1.2.3-54-g00ecf