1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-16 11:03:59 +02:00

Running the explode instruction outside the foreach loops is faster

This commit is contained in:
acidvertigo
2011-08-18 21:14:44 +03:00
parent 3cc4f27374
commit cfd6d3cd5a

View File

@@ -45,7 +45,8 @@ class Minify_Controller_MinApp extends Minify_Controller_Base {
$this->log("Duplicate group key found.");
return $options;
}
foreach (explode(',', $_GET['g']) as $key) {
$keys = explode(',', $_GET['g']);
foreach ($keys as $key) {
if (! isset($cOptions['groups'][$key])) {
$this->log("A group configuration for \"{$key}\" was not found");
return $options;