Skip to content

Commit

Permalink
Merge pull request #121 from lageIBUSP/fix120
Browse files Browse the repository at this point in the history
fix #120
  • Loading branch information
Lobz authored Jun 11, 2024
2 parents c3f1a5c + 91cb780 commit 4da0efb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/ExercicioController.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ private function corretoR(Exercicio $exercicio, string $file)
. 'dbpass <- "' . env('DB_PASSWORD') . '";'
. 'dbname <- "' . env('DB_DATABASE') . '";'
. 'con <- connect(dbusr, dbpass, dbname);'
. 'TRUE;' // This is to prevent connection object being returned (which causes an echo warning visible in production)
;
$r = $cnx->evalString($rcode);
} catch (Exception $e) {
Expand Down

0 comments on commit 4da0efb

Please sign in to comment.