summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-06 10:12:17 -0400
committerEvan Prodromou <evan@status.net>2010-09-06 10:12:17 -0400
commit86a702953a8082b062e48c8f6eea60a7f749ef12 (patch)
tree82310bdde6e7b67f9f103c2a422efd48bb121ca4 /index.php
parenta319b40c97c2fd6527eeb81d7d2f2d703756ef80 (diff)
parent80044ad735643c289c6f682f60e67bb7662bde0f (diff)
Merge branch '0.9.x' into 1.0.x
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
index 0aceeda55..3efe5c8e4 100644
--- a/index.php
+++ b/index.php
@@ -225,12 +225,12 @@ function main()
if ($_lighty_url['path'] != '/index.php' && $_lighty_url['path'] != '/') {
$_lighty_path = preg_replace('/^'.preg_quote(common_config('site', 'path')).'\//', '', substr($_lighty_url['path'], 1));
$_SERVER['QUERY_STRING'] = 'p='.$_lighty_path;
- if ($_lighty_url['query']) {
+ if (isset($_lighty_url['query']) && $_lighty_url['query'] != '') {
$_SERVER['QUERY_STRING'] .= '&'.$_lighty_url['query'];
- }
- parse_str($_lighty_url['query'], $_lighty_query);
- foreach ($_lighty_query as $key => $val) {
- $_GET[$key] = $_REQUEST[$key] = $val;
+ parse_str($_lighty_url['query'], $_lighty_query);
+ foreach ($_lighty_query as $key => $val) {
+ $_GET[$key] = $_REQUEST[$key] = $val;
+ }
}
$_GET['p'] = $_REQUEST['p'] = $_lighty_path;
}