Skip to content

Commit 1334b87

Browse files
committed
Suppressed Warning that breaks our JSON output
If the object files dir wasn't opened, opendir echoes a Warning (probably depends on PHP settings), which would break our JSON. Fixed that
1 parent 95f8e21 commit 1334b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/DeletionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function deleteAllObjects(&$success, &$fileCount, &$deletionStats, &$undeletedFi
4343
"success_dot_LOCK" => 0,
4444
"failure_dot_LOCK" => 0);
4545

46-
if ($handle = opendir($this->object_directory))
46+
if ($handle = @opendir($this->object_directory))
4747
{
4848
$success = true;
4949

@@ -80,7 +80,7 @@ function deleteSpecificObjects(&$success, &$response, &$option, &$to_delete)
8080
$response["deleted_files"] = "";
8181
$response["undeleted_files"] = "";
8282

83-
if ($handle = opendir($this->object_directory))
83+
if ($handle = @opendir($this->object_directory))
8484
{
8585
while (false !== ($entry = readdir($handle)))
8686
{

0 commit comments

Comments
 (0)