Skip to content

Commit

Permalink
Silence general PHP warnings, only send to error_log
Browse files Browse the repository at this point in the history
  • Loading branch information
tarodenberg committed Dec 13, 2012
1 parent f216465 commit 0d217de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cf-asset-optimizer.php
Expand Up @@ -129,7 +129,7 @@ public static function buildConcatenatedScriptFile() {
exit('Issue: ' . print_r($scripts_obj, true));
}

$lock = fopen($directory.$lockfile, 'x');
$lock = @fopen($directory.$lockfile, 'x');
if (!$lock) {
error_log('Could not create lockfile: ' . $directory.$lockfile);
exit();
Expand Down Expand Up @@ -264,7 +264,7 @@ public static function buildConcatenatedScriptFile() {
if (!empty($included_scripts)) {
// We have a file to write
$filename = self::_getConcatenatedScriptsFilename($included_scripts);
$file = fopen($directory.$filename, 'w');
$file = @fopen($directory.$filename, 'w');
if (!$file === false) {
// We have a valid file pointer.

Expand Down Expand Up @@ -548,7 +548,7 @@ public static function buildConcatenatedStyleFile() {
exit();
}

$lock = fopen($directory.$lockfile, 'x');
$lock = @fopen($directory.$lockfile, 'x');
if (!$lock) {
error_log('Could not create lockfile: ' . $directory.$lockfile);
exit();
Expand Down Expand Up @@ -683,7 +683,7 @@ public static function buildConcatenatedStyleFile() {
if (!empty($included_styles)) {
// We have a file to write
$filename = self::_getConcatenatedStylesFilename($included_styles);
$file = fopen($directory.$filename, 'w');
$file = @fopen($directory.$filename, 'w');
if (!$file === false) {
// We have a valid file pointer.

Expand Down

0 comments on commit 0d217de

Please sign in to comment.