Fix: $database inaccessible from within User::GetVpsCount

feature/node-rewrite
Sven Slootweg 12 years ago
parent e3da8b66a5
commit 7cab0bd19c

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

Loading…
Cancel
Save