]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1151: Added is_dir() check before attempting to create cache directory.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Jul 2009 13:19:43 +0000 (13:19 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 29 Jul 2009 13:19:43 +0000 (13:19 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3415 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/cache.php

index 70a8d49f21b14d747bfe8edbf8fc8fc480819676..703f61bd2293cb110fad1ca3f33b43e4808ca064 100644 (file)
                                
                        // Create full path
                        $path = $this->get_variable("cache_path") . $matrix;
-                       mkdir($path, 0700, true);
+                       if (!is_dir($path))
+                               mkdir($path, 0700, true);
                        
        //              if (!mkdir($path, 0700, true)) throw new IOException("Could not make $path");
                        
                }
        }
        
-?>
\ No newline at end of file
+?>