X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=app%2Fdata%2Fmodules%2Fshare%2Fsml_data_sources_cache.php;fp=app%2Fdata%2Fmodules%2Fshare%2Fsml_data_sources_cache.php;h=aa65109eb4eafc788ed62ed06ecc6f9b907d20f5;hb=7d287d32ecd625ad3c21e9aa2aa122c86f9ec671;hp=7232c6c2a703602d8b7b7e67f610faac34cb3be8;hpb=dfb63819f6edd72089b4d3a4c8cce3d7cba7c015;p=mw_sourceml diff --git a/app/data/modules/share/sml_data_sources_cache.php b/app/data/modules/share/sml_data_sources_cache.php index 7232c6c..aa65109 100644 --- a/app/data/modules/share/sml_data_sources_cache.php +++ b/app/data/modules/share/sml_data_sources_cache.php @@ -155,12 +155,12 @@ * 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; } }