From afae3498f581df2b24964855fa46526102abfc38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berkay=20Gu=CC=88re?= Date: Wed, 18 Jul 2018 21:37:12 +0300 Subject: [PATCH] Fixes mysqlVersion() if not using mysql display n/a --- app/Utilities/Info.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Utilities/Info.php b/app/Utilities/Info.php index db5211c34..b44813ab2 100644 --- a/app/Utilities/Info.php +++ b/app/Utilities/Info.php @@ -39,6 +39,11 @@ class Info public static function mysqlVersion() { - return DB::selectOne('select version() as mversion')->mversion; + if(env('DB_CONNECTION') === 'mysql') + { + return DB::selectOne('select version() as mversion')->mversion; + } + + return "N/A"; } } \ No newline at end of file