sync
[Pman.Core] / Asset.php
index b65dca0..583e538 100644 (file)
--- a/Asset.php
+++ b/Asset.php
@@ -168,14 +168,13 @@ class Pman_Core_Asset extends Pman {
     function clearCompiledFilesCache()
     {
         $au = $this->getAuthUser();
-        if (!$au && !in_array($_SERVER['REMOTE_ADDR'] , array('127.0.0.1','::1')) {
+        if (!$au && !in_array($_SERVER['REMOTE_ADDR'] , array('127.0.0.1','::1'))) {
             $this->jerr("Cache can only be cleared by authenticated users");
         }
         
-        
         require_once 'System.php';
-        $mods = $this->modulesList();
         
+        $mods = $this->modulesList();
         foreach ($mods as $mod) {
             $compile_dir = $this->getCompileDir('js', $module, false);