diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-19 22:59:26 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2010-01-19 22:59:26 +0000 |
commit | ef3a73a215c74b42e82819ffc944844d6c16359a (patch) | |
tree | 6135d480745a37b073c4ea498c8a9f1c12039849 /www | |
parent | a2b518b1b356264b7db7dacea25121b105c13107 (diff) | |
download | semanticscuttle-ef3a73a215c74b42e82819ffc944844d6c16359a.tar.gz semanticscuttle-ef3a73a215c74b42e82819ffc944844d6c16359a.tar.bz2 |
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
Diffstat (limited to 'www')
-rw-r--r-- | www/alltags.php | 11 |
1 files changed, 6 insertions, 5 deletions
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; |