aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-12 17:02:24 +0200
committerThomas Lange <code@nerdmind.de>2017-05-12 17:10:10 +0200
commiteaf02a11bec54a783b0312fd496315883426c989 (patch)
treeb9323bb1bfa54dd4ed1d4002f16375b11d2ca12a
parentbf3a2dd66bcf2c8f54fb35bcc477e4f3f75de3c4 (diff)
downloadblog-eaf02a11bec54a783b0312fd496315883426c989.tar.gz
blog-eaf02a11bec54a783b0312fd496315883426c989.tar.xz
blog-eaf02a11bec54a783b0312fd496315883426c989.zip
Bugfix: If the database password is removed within the first "getDatabase" call, it will prevent that a new connection can be enforced when calling "getDatabase(TRUE)" because the password was removed in the first call before and doesn't exist anymore (the database connection will fail because of an invalid connection password).
-rw-r--r--core/namespace/Application.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php
index b4796c6..4fa80cc 100644
--- a/core/namespace/Application.php
+++ b/core/namespace/Application.php
@@ -43,8 +43,6 @@ class Application {
$username = self::get('DATABASE.USERNAME');
$password = self::get('DATABASE.PASSWORD');
- self::set('DATABASE.PASSWORD', NULL);
-
self::$Database = new Database($hostname, $basename, $username, $password);
}