diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-04-07 19:04:32 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-04-07 19:04:32 +0200 |
commit | 36ff61b38e2f374c03543b70cce487415b793073 (patch) | |
tree | d10100b0a9ef68abb9866dcaba4963130ddf3789 /www/rss.php | |
parent | 12c77161aca2c7d76fa5154fa1f4e214106d834b (diff) | |
download | semanticscuttle-36ff61b38e2f374c03543b70cce487415b793073.tar.gz semanticscuttle-36ff61b38e2f374c03543b70cce487415b793073.tar.bz2 |
fix E_NOTICE in rss when calling i.e. http://bm.bogo/rss.php/test?sort=date_desc
Diffstat (limited to 'www/rss.php')
-rw-r--r-- | www/rss.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/www/rss.php b/www/rss.php index 298d9ba..50240e5 100644 --- a/www/rss.php +++ b/www/rss.php @@ -26,8 +26,14 @@ require_once 'www-header.php'; $bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark'); $cacheservice = SemanticScuttle_Service_Factory::get('Cache'); -if (isset($_SERVER['PATH_INFO']) && strlen($_SERVER['PATH_INFO']) >1) { - list($url, $user, $cat) = explode('/', $_SERVER['PATH_INFO']); +if (isset($_SERVER['PATH_INFO']) && strlen($_SERVER['PATH_INFO']) > 1) { + $parts = explode('/', $_SERVER['PATH_INFO']); + if (count($parts) == 3) { + list($url, $user, $cat) = $parts; + } else { + list($url, $user) = $parts; + $cat = null; + } } else { $url = ''; $user = ''; |