diff options
Diffstat (limited to 'endpoints')
-rw-r--r-- | endpoints/lib/vboxconnector.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php index d33825c..8c4953c 100644 --- a/endpoints/lib/vboxconnector.php +++ b/endpoints/lib/vboxconnector.php @@ -3749,15 +3749,15 @@ class vboxconnector { if ( @isset($this->settings->vmQuotaPerUser) && @$this->settings->vmQuotaPerUser > 0 && !$_SESSION['admin'] ) { $newresp = array('data' => array()); - $vmlist = $this->vboxGetMachines(array(), $newresp); - if ( count($newresp['data']['vmlist']) >= $this->settings->vmQuotaPerUser ) + $this->vboxGetMachines(array(), array(&$newresp)); + if ( count($newresp['data']['responseData']) >= $this->settings->vmQuotaPerUser ) { // we're over quota! // delete the disk we just created if ( isset($args['disk']) ) { $this->mediumRemove(array( - 'id' => $args['disk'], + 'medium' => $args['disk'], 'type' => 'HardDisk', 'delete' => true ), $newresp); |