powered by nequal
Home » Services_WeatherUnderground » Timeline » 1698

Changeset 1698 -- 2010-03-07 17:32:54

Author
FreeBSE
Comment

Diffs

Services_WeatherUnderground/trunk/WeatherUnderground.php

@@ -109,7 +109,7 @@
*/
private function cacheSet($data, $id){
if(!is_dir('tmp')) mkdir('tmp');
-	    if(strpos(PHP_OS, 'WIN') !== 0) chmod(0777, 'tmp');
+	    if(strpos(PHP_OS, 'WIN') !== 0) chmod('tmp', 0777);
$Cache_Lite = new Cache_Lite($this->cache_options);
if(!$this->cacheCheck($Cache_Lite, $id)){
$r = $Cache_Lite->save($data, $id);