Fixed page routes

This commit is contained in:
Deon George 2018-12-12 16:45:02 +11:00
parent 7c914d7d13
commit e0306908bd
2 changed files with 4 additions and 3 deletions

View File

@ -537,7 +537,9 @@ abstract class Server {
case '7':
case '8':
case '9':
if ($frame = $fo->route($read)) {
if (is_numeric($fo->route($read))) {
$page = ['frame'=>$fo->route($read),'index'=>'a'];
$action = ACTION_GOTO;
} else {
@ -711,8 +713,7 @@ abstract class Server {
$this->sendBaseline($client,ERR_PAGE);
$mode = $action = FALSE;
// We initialise $fo anyway
$fo = $this->mo->frame($this->testFrame());
$fo = $current['frame'] ?: $this->mo->frame($this->testFrame());
break;
}

0
resources/views/.gitignore vendored Normal file
View File