aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pinq/Controller.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2013-05-29 22:47:04 +0000
committerRomain d'Alverny <rda@mageia.org>2013-05-29 22:47:04 +0000
commitad6b6127a8849cb2d127f0b236ff1f12cd22ce1e (patch)
tree7e5788666158d3ba23d521b6ae20250f3d7a2b6d /lib/pinq/Controller.php
parent401b89f5fd2d45e999b04e849544ac76db8d323d (diff)
downloadwww-ad6b6127a8849cb2d127f0b236ff1f12cd22ce1e.tar
www-ad6b6127a8849cb2d127f0b236ff1f12cd22ce1e.tar.gz
www-ad6b6127a8849cb2d127f0b236ff1f12cd22ce1e.tar.bz2
www-ad6b6127a8849cb2d127f0b236ff1f12cd22ce1e.tar.xz
www-ad6b6127a8849cb2d127f0b236ff1f12cd22ce1e.zip
URI may have no query string
Diffstat (limited to 'lib/pinq/Controller.php')
-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(