Closed barrychapman closed 7 years ago
@barrychapman I can't reproduce this, can you provide more information? like the exact steps to reproduce this bug, and how did you install php redmin? Are you using Docker?
Problem is here: https://github.com/sasanrose/phpredmin/blob/master/views/layout.php#L128
And Here: https://github.com/sasanrose/phpredmin/blob/master/libraries/controller.php#L47
If $this->infoModel->getDbs($info); return empty array ([]
) then index 'dbs' will not be found in layout. It can be fixed by changing line expression in layout:
<?= ($this->app->current['dbs'][$this->app->current['database']]['name'] ? $this->app->current['dbs'][$this->app->current['database']]['name'] . " (DB {$this->app->current['database']})" : "DB {$this->app->current['database']}") ?>
to
<?= (isset($this->app->current['dbs'][$this->app->current['database']]['name']) ? $this->app->current['dbs'][$this->app->current['database']]['name'] . " (DB {$this->app->current['database']})" : "DB {$this->app->current['database']}") ?>
Config: