show lamdaemon errors

This commit is contained in:
Roland Gruber 2006-09-09 11:46:01 +00:00
parent 10e3d9219b
commit f70d3745fc
1 changed files with 11 additions and 0 deletions

View File

@ -132,6 +132,17 @@ class quota extends baseModule {
parent::init($base); parent::init($base);
// Get basic quotas for new account // Get basic quotas for new account
$output_array = lamdaemon(array("+ quota get " . $_SESSION[$this->base]->type)); $output_array = lamdaemon(array("+ quota get " . $_SESSION[$this->base]->type));
// Error somewhere in lamdaemon
if (isset($output_array) && is_array($output_array)) {
foreach ($output_array as $singleresult) {
$singleresult = explode(",", $singleresult);
if (is_array($singleresult)) {
if ($singleresult[0] == 'ERROR') {
StatusMessage($singleresult[0], $singleresult[1], $singleresult[2]);
}
}
}
}
// process quotas // process quotas
if (is_array($output_array)) { if (is_array($output_array)) {
$all_quota = explode(':', $output_array[0]); $all_quota = explode(':', $output_array[0]);