aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/pinq/Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pinq/Controller.php b/lib/pinq/Controller.php
index 8bf87ce1c..af82c3b0d 100644
--- a/lib/pinq/Controller.php
+++ b/lib/pinq/Controller.php
@@ -228,7 +228,7 @@ class Pinq_Controller
function fallback_to_previous_mode($uri, $lang)
{
$uri = explode('?', $uri);
- $qs = $uri[1];
+ $qs = count($uri) > 1 ? $uri[1] : null;
$uri = $uri[0];
$alt_uri = sprintf(