openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit 5a1afdb09433de18dc0b68e00911d2aa0d1c91db
parent 5f4cace17bd4b5ffc76e057fabb0814a9cd89472
Author: Jan Dankert <develop@jandankert.de>
Date:   Fri, 20 Nov 2020 10:47:38 +0100

Fix: Do not throw an error if the connections 'description' is empty.

Diffstat:
Mmodules/cms/action/LoginAction.class.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/cms/action/LoginAction.class.php b/modules/cms/action/LoginAction.class.php @@ -82,13 +82,13 @@ class LoginAction extends BaseAction return array_map( function($dbconf) { // Getting the first not-null information about the connection. - return array_filter( array( + return array_values(array_filter( array( $dbconf->get('description'), $dbconf->get('name' ), $dbconf->get('host' ), $dbconf->get('driver'), $dbconf->get('type' ), - 'unknown'))[0]; + 'unknown')))[0]; }, $this->getAllEnabledDatabases() );