summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 2f3e8dbfe..968f0d29f 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -204,7 +204,9 @@ function arg($index) {
$arguments = explode('/', $_GET['q']);
}
- return $arguments[$index];
+ if (array_key_exists($index, $arguments)) {
+ return $arguments[$index];
+ }
}
function check_query($text) {