CMS MADE SIMPLE FORGE

Random Image Selector

 

[#751] Random Image Bug

avatar
Created By: Aaron Jay (cuhlcannon)
Date Submitted: Tue Jun 13 07:07:58 -0400 2006

Assigned To:
Version: None
CMSMS Version: None
Severity: None
Resolution: Fixed
State: Open
Summary:
Random Image Bug
Detailed Description:
The random image is picking up the .. it looks like in the directory structure
from time to time (randomly of course) and is making for a broken image on the
websites that I use it on.



History

Comments
avatar
Date: 2009-08-26 12:22
Posted By: Ondra Kotecky (kotecky)

Patch (replace lines 41 thru 46):


$myimage = "";
while(!is_dir($dirn . "/" . $myimage)) { 
    for($i=0;$i<$randnum;$i++)
    {
            $entryName = $myDir->read();
            $myimage = $entryName;
    }
}


Best regards, Ondra
      
Updates

Updated: 2011-01-26 13:22
resolution_id: => 7
severity_id: => 12