]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix E_NOTICE when calling alltags.php without any parameter
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 Jan 2010 22:59:26 +0000 (22:59 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 Jan 2010 22:59:26 +0000 (22:59 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@619 b3834d28-1941-0410-a4f8-b48e95affb8f

doc/ChangeLog
www/alltags.php

index be7b2addb47bde50fa1947e6a194b107205b34b8..6e2676ea20a254a1cfdc2232c139b6bb0c40dfa8 100644 (file)
@@ -18,6 +18,7 @@ ChangeLog for SemantiScuttle
 - Fix bug #2934891: RSS XML was sometimes invalid because
   special characters did not get escaped.
 - Special header file for shell scripts (header-standalone.php)
+- Fix E_NOTICE when calling alltags.php without any parameter
 
 
 0.95.2 - 2010-01-16
index 52a42b04e2bfd4d8d3d90fae4395fb3f569405a9..7a6157b8a57fa8a94f069244d5d8140fdd7fb82c 100644 (file)
 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;