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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user