Skip to content

Commit e25959f

Browse files
committed
Added stricter checks for successful extractions
1 parent 9aeed6c commit e25959f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function main($request, $compiler_config)
7373
$files = array();
7474
$tmp = $this->extractFiles($request["files"], $TEMP_DIR, $compiler_dir, $files["sketch_files"], "files");
7575

76-
if ($tmp["success"] == false)
76+
if ($tmp["success"] === false)
7777
return $tmp;
7878

7979
// Add the compiler temp directory to the compiler_config struct.
@@ -84,7 +84,7 @@ function main($request, $compiler_config)
8484
foreach($libraries as $library => $library_files){
8585

8686
$tmp = $this->extractFiles($library_files, $TEMP_DIR, $compiler_dir, $files["libs"][$library], "libraries/$library", true);
87-
if ($tmp["success"] == false)
87+
if ($tmp["success"] === false)
8888
return $tmp;
8989
}
9090

0 commit comments

Comments
 (0)