Fix PHP notice about undefined index q
This commit is contained in:
parent
dff9a77968
commit
5c719ba34e
4
boot.php
4
boot.php
|
@ -80,8 +80,8 @@ class App {
|
||||||
|
|
||||||
$this->query_string = $_SERVER['QUERY_STRING'];
|
$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->argv = explode('/',$this->cmd);
|
||||||
$this->argc = count($this->argv);
|
$this->argc = count($this->argv);
|
||||||
|
|
Loading…
Reference in New Issue