Fixed customer's backup directory (thanks to monotek and arnoldB), fixes #859

Signed-off-by: Christoph Burchert (Chb) <derchb@froxlor.org>
This commit is contained in:
Christoph Burchert (Chb)
2011-09-15 15:03:55 +02:00
parent 642cd3da9d
commit 992702870c
5 changed files with 20 additions and 15 deletions

View File

@@ -408,7 +408,6 @@ while($row = $db->fetch_array($result))
* Total Usage
*/
$diskusage = floatval($webspaceusage + $emailusage + $mysqlusage);
if($settings['system']['backup_count'] == 0 && file_exists($settings['system']['backup_dir'] . $row['loginname'])){
$backupsize = exec('du -s ' . escapeshellarg($settings['system']['backup_dir']) . $row['loginname'] . '');
$diskusage = floatval($webspaceusage + $emailusage + $mysqlusage - $backupsize);