Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
silient warning, this is annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-vincent-zhao committed Jun 17, 2015
1 parent eb58549 commit 6e26559
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Analytics/Consumer/Fornax.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ public function __construct($secret, $options = array()) {
$options['filename'] = $this->getFilename();

try {
$this->file_handle = fopen($options["filename"], "a");
chmod($options["filename"], $options["filepermissions"]);
$this->file_handle = @fopen($options["filename"], "a");
if ($this->file_handle) {
chmod($options["filename"], $options["filepermissions"]);
}
} catch (\Exception $e) {
$this->handleError($e->getCode(), $e->getMessage());
}
Expand Down

0 comments on commit 6e26559

Please sign in to comment.