Skip to content

Commit 05685ab

Browse files
committed
Fixed null user/project id.
1 parent c1b8283 commit 05685ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Symfony/src/Codebender/ApiBundle/Controller/DefaultController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ public function compileAction($auth_key, $version)
9292

9393
$files = $contents["files"];
9494

95-
$files[] = array('filename' => 'user_null.txt', 'content' => '');
96-
$files[] = array('filename' => 'null.txt', 'content' => '');
97-
9895
$userlibs = array();
9996
if (array_key_exists('libraries', $contents))
10097
$userlibs = $contents['libraries'];
10198

10299
$headersArr = $this->checkHeaders($files, $userlibs);
103100

101+
$contents['files'][] = array('filename' => 'user_null.txt', 'content' => '');
102+
$contents['files'][] = array('filename' => 'null.txt', 'content' => '');
103+
104104
$contents["libraries"] = $headersArr['libraries'];
105105
$request_content = json_encode($contents);
106106

0 commit comments

Comments
 (0)