till / cssmin

Automatically exported from code.google.com/p/cssmin
0 stars 0 forks source link

If config array is empty array_combine triggers an error #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PHP Error
=========
array_combine(): Both parameters should have at least 1 element (code 2)

Details
=======
Error on file '/home/sanz/workspace/saltos/code/lib/cssmin/cssmin-v2.0.2.php' 
at line 595

Fixed with
==========
if(count($config)) $config = array_combine(array_map("trim", 
array_map("strtolower", array_keys($config))), array_values($config));

URL test
========
https://localhost.localdomain/saltos/code/xml.php?action=cache&files=lib/jqu
ery/jquery.tooltip.css,lib/jquery/jquery.colorpicker.css,lib/jquery/jquery.ptTim
eSelect.css,lib/jquery/jquery.jgrowl.css,&r=3657

Original issue reported on code.google.com by joe.scylla on 18 Feb 2011 at 9:35

GoogleCodeExporter commented 8 years ago
Fixed in version 2.0.2.1.

Original comment by joe.scylla on 18 Feb 2011 at 10:02