fix E_NOTICE in rss when calling i.e. http://bm.bogo/rss.php/test?sort=date_desc
This commit is contained in:
parent
12c77161ac
commit
36ff61b38e
1 changed files with 8 additions and 2 deletions
10
www/rss.php
10
www/rss.php
|
@ -26,8 +26,14 @@ require_once 'www-header.php';
|
||||||
$bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark');
|
$bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark');
|
||||||
$cacheservice = SemanticScuttle_Service_Factory::get('Cache');
|
$cacheservice = SemanticScuttle_Service_Factory::get('Cache');
|
||||||
|
|
||||||
if (isset($_SERVER['PATH_INFO']) && strlen($_SERVER['PATH_INFO']) >1) {
|
if (isset($_SERVER['PATH_INFO']) && strlen($_SERVER['PATH_INFO']) > 1) {
|
||||||
list($url, $user, $cat) = explode('/', $_SERVER['PATH_INFO']);
|
$parts = explode('/', $_SERVER['PATH_INFO']);
|
||||||
|
if (count($parts) == 3) {
|
||||||
|
list($url, $user, $cat) = $parts;
|
||||||
|
} else {
|
||||||
|
list($url, $user) = $parts;
|
||||||
|
$cat = null;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$url = '';
|
$url = '';
|
||||||
$user = '';
|
$user = '';
|
||||||
|
|
Loading…
Reference in a new issue