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>'; }
CyberJ37 Reviewed by CyberJ37 on . [WCDDL][Bug-Fix] Editing Downloads (AdminCP) 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: for($i=1;$i<=5;$i++) { echo '<option value="'.$i.'"'.($i == $down ? ' selected="selected"' : '').'>'.$i.'</option>'; }REPLACE WITH: Rating: 5