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:
REPLACE WITH:
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>'; }
Code:
for($i=0;$i<=5;$i++) { echo '<option value="'.$i.'"'.($i == $down['rating'] ? ' selected="selected"' : '').'>'.$i.'</option>'; }