From 5f343edfcd615348513975d1ff569b1171c8ddb5 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 24 May 2013 23:11:40 +0200 Subject: [PATCH] Check strpos result explicitly, whoops --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index 960ae92..0aa1e0a 100644 --- a/base.php +++ b/base.php @@ -53,7 +53,7 @@ /* Detect whether the request URI and the $_GET array disagree on the * existence of GET parameters. */ -if(strpos($_SERVER['REQUEST_URI'], "?") && empty($_GET)) +if(strpos($_SERVER['REQUEST_URI'], "?") !== false && empty($_GET)) { /* Separate the protocol/host/path component from the query string. */ list($uri, $query) = explode("?", $_SERVER['REQUEST_URI'], 2);