mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Unqualified function/constant reference and much more
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
b08f6e898b
commit
78af495048
68 changed files with 273 additions and 277 deletions
|
@ -188,7 +188,7 @@ function quota_limit_select($select_name, $default_quota = 0)
|
|||
}
|
||||
DB()->sql_freeresult($result);
|
||||
|
||||
for ($i = 0, $iMax = count($quota_name); $i < $iMax; $i++) {
|
||||
foreach ($quota_name as $i => $iValue) {
|
||||
$selected = ($quota_name[$i]['quota_limit_id'] == $default_quota) ? ' selected="selected"' : '';
|
||||
$quota_select .= '<option value="' . $quota_name[$i]['quota_limit_id'] . '"' . $selected . '>' . $quota_name[$i]['quota_desc'] . '</option>';
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ function default_quota_limit_select($select_name, $default_quota = 0)
|
|||
}
|
||||
DB()->sql_freeresult($result);
|
||||
|
||||
for ($i = 0, $iMax = count($quota_name); $i < $iMax; $i++) {
|
||||
foreach ($quota_name as $i => $iValue) {
|
||||
$selected = ($quota_name[$i]['quota_limit_id'] == $default_quota) ? ' selected="selected"' : '';
|
||||
$quota_select .= '<option value="' . $quota_name[$i]['quota_limit_id'] . '"' . $selected . '>' . $quota_name[$i]['quota_desc'] . '</option>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue