Skip to content

Commit

Permalink
Update User.php
Browse files Browse the repository at this point in the history
  • Loading branch information
HieuPT7 authored Nov 7, 2019
1 parent a621bfa commit 88c1459
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DirectAdmin/Objects/Users/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ public function getDatabases()
*/
public function getDatabase($databaseName)
{
$databaseName = str_replace($this->getUsername() . '_' , '', $databaseName);
if (!isset($this->databases)) {
$this->getDatabases();
}
Expand Down

0 comments on commit 88c1459

Please sign in to comment.