summaryrefslogtreecommitdiffstatshomepage
path: root/www/alltags.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/alltags.php')
-rw-r--r--www/alltags.php11
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;