From 91cb780b4033020a42b2fee91b2376ae8187ee33 Mon Sep 17 00:00:00 2001 From: Mali Oz Date: Thu, 6 Jun 2024 14:50:35 -0300 Subject: [PATCH] fix #120 --- app/Http/Controllers/ExercicioController.php | 1 + 1 file changed, 1 insertion(+) 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) {