[WCDDL][Bug-Fix] Editing Downloads (AdminCP)

Status
Not open for further replies.

CyberJ37

Active Member
1,493
2008
2
0
Here's a simple bug fix for when editing downloads in the WCDDL adminCP.

Ever noticed how whenever you edit a download, the rating drop down menu starts from 1 instead of 0, so if the downloads rating is 0, and you want to edit the title or something, the rating will automatically change to 1.

Well here's a fix for it.

Open funcs.php

FIND FOR:
Code:
for($i=1;$i<=5;$i++) { echo '<option value="'.$i.'"'.($i == $down['rating'] ? ' selected="selected"' : '').'>'.$i.'</option>'; }
REPLACE WITH:
Code:
for($i=0;$i<=5;$i++) { echo '<option value="'.$i.'"'.($i == $down['rating'] ? ' selected="selected"' : '').'>'.$i.'</option>'; }
 
Status
Not open for further replies.
Back
Top