From 633ce14445140291b20a6a9df26246dd087e43d0 Mon Sep 17 00:00:00 2001 From: Frank Sierra Date: Mon, 23 Mar 2015 16:41:33 -0500 Subject: [PATCH] Undefined Function Only threw error when the database is not configured --- backend/php-mysql/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/php-mysql/index.php b/backend/php-mysql/index.php index 03bbefc..2227eb9 100644 --- a/backend/php-mysql/index.php +++ b/backend/php-mysql/index.php @@ -23,10 +23,9 @@ } $res = mysqli_select_db($this->getLink(), DB); if (!$res){ - // try to create the DataBase and table - if(!$this->setup_first_time()){ - return false; - } + // Data Base Not configured + echo "You have to configure the DataBase"; + return false; } return true; }