diff --git a/lib/PodioLogger.php b/lib/PodioLogger.php index 66afee8..4b42094 100644 --- a/lib/PodioLogger.php +++ b/lib/PodioLogger.php @@ -28,7 +28,9 @@ public function enable() public function log($text) { - @mkdir(dirname($this->file)); + if (!is_dir(dirname($this->file))) { + mkdir(dirname($this->file), 0777, true); + } if ($fp = fopen($this->file, 'ab')) { fwrite($fp, $text); fclose($fp);