marche avec MySql, SQLite ou XML
[mw_sourceml] / app / data / modules / share / sml_data_sources_cache.php
index 7232c6c..aa65109 100644 (file)
      * vide le cache
      *
      */
-    function empty_source_cache()
-    { $OK = true;
-      if(($cache = $this->source_cache_db()) !== false)
-      { foreach($cache as $id_cache => $cache_infos)
-        { if(!$this->del_source_cache($id_cache, $cache_infos["id_source"]))
-          { $OK = false;
+    function empty_source_cache(){
+      $OK = true;
+      if(($cache = $this->source_cache_db()) !== false){
+        foreach($cache as $id_cache => $cache_infos){
+          if(!$this->del_source_cache($id_cache, $cache_infos["id_source"])){
+            $OK = false;
             $break;
           }
         }