From 88c1459559b26547f036b901efb1fe040972ecd7 Mon Sep 17 00:00:00 2001 From: HieuPT7 <8587251+HieuPT7@users.noreply.github.com> Date: Thu, 7 Nov 2019 23:25:04 +0700 Subject: [PATCH] Update User.php --- src/DirectAdmin/Objects/Users/User.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DirectAdmin/Objects/Users/User.php b/src/DirectAdmin/Objects/Users/User.php index b728208..169fc41 100644 --- a/src/DirectAdmin/Objects/Users/User.php +++ b/src/DirectAdmin/Objects/Users/User.php @@ -463,6 +463,7 @@ public function getDatabases() */ public function getDatabase($databaseName) { + $databaseName = str_replace($this->getUsername() . '_' , '', $databaseName); if (!isset($this->databases)) { $this->getDatabases(); }