From 5c719ba34eada65fddfae97072b611320d0c2df9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 22 Mar 2017 00:36:40 -0400 Subject: [PATCH] Fix PHP notice about undefined index q --- boot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index c0c6d7c6..4a55e757 100755 --- a/boot.php +++ b/boot.php @@ -80,8 +80,8 @@ class App { $this->query_string = $_SERVER['QUERY_STRING']; - $this->cmd = trim($_GET['q'],'/'); - + $q = isset($_GET['q']) ? $_GET['q'] : ''; + $this->cmd = trim($q, '/'); $this->argv = explode('/',$this->cmd); $this->argc = count($this->argv);