Skip to content

Commit 0e80d1b

Browse files
committed
Syntaxerror-korrektur
1 parent e8b3291 commit 0e80d1b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

interface/lib/classes/quota_lib.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
class quota_lib {
4-
public function get_quota_data(groupid = null, $readable = true) {
4+
public function get_quota_data($groupid = null, $readable = true) {
55
global $app;
66

77
$tmp_rec = $app->db->queryAllRecords("SELECT data from monitor_data WHERE type = 'harddisk_quota' ORDER BY created DESC");
@@ -14,7 +14,7 @@ public function get_quota_data(groupid = null, $readable = true) {
1414
//print_r($monitor_data);
1515

1616
if($groupid != null){
17-
$sql_where = " AND sys_groupid = ".$groupid);
17+
$sql_where = " AND sys_groupid = ".$groupid;
1818
}
1919

2020
// select websites belonging to client
@@ -115,7 +115,7 @@ public function get_mailquota_data($groupid = null, $readable = true) {
115115
}
116116

117117
if($groupid != null){
118-
$sql_where = " AND sys_groupid = ".$groupid);
118+
$sql_where = " AND sys_groupid = ".$groupid;
119119
}
120120

121121

interface/lib/classes/remoting.inc.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ public function quota_get_by_user($session_id, $group_id)
199199
}
200200
$group_id = $app->functions->intval($group_id);
201201

202-
$sites = $app->quota_lib->get_quota_data($group_id, false);
203-
204-
return $sites;
202+
return $app->quota_lib->get_quota_data($group_id, false);
205203
}
206204

207205
public function mailquota_get_by_user($session_id, $group_id)
@@ -215,9 +213,7 @@ public function mailquota_get_by_user($session_id, $group_id)
215213
}
216214
$group_id = $app->functions->intval($group_id);
217215

218-
$sites = $app->quota_lib->get_quota_data($group_id, false);
219-
220-
return $sites;
216+
return $app->quota_lib->get_quota_data($group_id, false);
221217
}
222218

223219
//** protected functions -----------------------------------------------------------------------------------

0 commit comments

Comments
 (0)