CMS MADE SIMPLE FORGE

ExaCSS

 

[#9829] Warning when cache is empty

avatar
Created By: Jasper Rooswinkel (Jaro)
Date Submitted: Mon Feb 10 11:23:18 -0500 2014

Assigned To: Jocelyn Lusseau (kraygoon)
Version: ExaCSS 1.2.2
CMSMS Version: 1.11.9
Severity: Minor
Resolution: Fixed
State: Open
Summary:
Warning when cache is empty
Detailed Description:
Thanks again for your excellent module, it's working very well. I have another
small issue.

When the cache is empty, the following warning is generated by ExaCSS when
loading a page:

Warning: Invalid argument supplied for foreach() in
/modules/ExaCSS/action.default.php on line 148

This message disappears after a page reload and can be reproduced by clearing
the cache again (as admin).

I've solved this by adding an extra check on line 148:

	if (glob(cms_join_path($cache_path,'exacss_*')))
	{
		foreach(glob(cms_join_path($cache_path,'exacss_*')) as $f)
		{
			unlink($f);
		}
	}

Maybe you can have a look at this.

Thanks,

Jasper


History

Comments
avatar
Date: 2015-03-23 16:18
Posted By: Jocelyn Lusseau (kraygoon)

Thanks, it will be fixed in the next release. Soon :-)
      
avatar
Date: 2015-03-23 16:36
Posted By: Jocelyn Lusseau (kraygoon)

Fixed
      
Updates

Updated: 2015-03-23 16:36
resolution_id: 6 => 7
assigned_to_id: 100 => 15432

Updated: 2015-03-23 16:18
resolution_id: => 6