Fix PHP notice about undefined index q

This commit is contained in:
Hypolite Petovan 2017-03-22 00:36:40 -04:00
parent dff9a77968
commit 5c719ba34e
1 changed files with 2 additions and 2 deletions

View File

@ -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);