CMS MADE SIMPLE FORGE

Uploads

 

[#11234] No stats recorded

avatar
Created By: Mathieu Muths (airelibre) (airelibre)
Date Submitted: Thu Dec 08 01:15:29 -0500 2016

Assigned To: Robert Campbell (calguy1000)
Version: 1.24.2
CMSMS Version: 2.1.5
Severity: Minor
Resolution: Fixed
State: Open
Summary:
No stats recorded
Detailed Description:
Hello,

I just installed Uploads without any specific Preferences (no subnet defined).

When downloading a file from the frontend (through action.getfile.php), I
noticed that the downloads counter doesn't work.

This seems to come from the subnet stuff :

$subnets = explode(",",$this->GetPreference("subnet_exclusions"));

This creates an array even if the pref is empty, and causes the "exit" function
to be called.

Adding :
if (!empty($this->GetPreference('subnet_exclusions')))
{
// subnet stuff
}

makes the download counter work again

Hope this will help !


History

Comments
avatar
Date: 2017-03-23 17:12
Posted By: Robert Campbell (calguy1000)

fixed in svn. thanks
      
Updates

Updated: 2017-03-23 17:12
resolution_id: => 7