Fix: $database inaccessible from within User::GetVpsCount

feature/node-rewrite
Sven Slootweg 12 years ago
parent e3da8b66a5
commit 2385ce3613

@ -52,6 +52,8 @@ class User extends CPHPDatabaseRecordClass
public function GetVpsCount()
{
global $database;
if($result = $database->CachedQuery("SELECT * FROM containers WHERE `UserId` = :UserId", array(":UserId" => $this->sId)))
{
return count($result->data);

Loading…
Cancel
Save