Fix PHP notice about undefined index q
This commit is contained in:
parent
dff9a77968
commit
5c719ba34e
1 changed files with 2 additions and 2 deletions
4
boot.php
4
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue