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

Commit

Permalink
Merge pull request #8 from bc-vincent-zhao/silence-warning
Browse files Browse the repository at this point in the history
silient warning, this is annoying
  • Loading branch information
bc-vincent-zhao committed Jun 17, 2015
2 parents eb58549 + 6e26559 commit b4f87b8
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 b4f87b8

Please sign in to comment.