diff --git a/app/Http/Controllers/ExercicioController.php b/app/Http/Controllers/ExercicioController.php index 9b49e48..6646eec 100644 --- a/app/Http/Controllers/ExercicioController.php +++ b/app/Http/Controllers/ExercicioController.php @@ -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) {