summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar cweiske2010-01-19 22:59:26 +0000
committerGravatar cweiske2010-01-19 22:59:26 +0000
commitef3a73a215c74b42e82819ffc944844d6c16359a (patch)
tree6135d480745a37b073c4ea498c8a9f1c12039849
parenta2b518b1b356264b7db7dacea25121b105c13107 (diff)
downloadscuttle-ef3a73a215c74b42e82819ffc944844d6c16359a.tar.gz
scuttle-ef3a73a215c74b42e82819ffc944844d6c16359a.zip
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
-rw-r--r--doc/ChangeLog1
-rw-r--r--www/alltags.php11
2 files changed, 7 insertions, 5 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index be7b2ad..6e2676e 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -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
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;