Updated isInstall() method

Updated inInstall herlper method to check value of install from config data as env(DB_INSTALL) returns null in some system
This commit is contained in:
Manish Verma
2018-11-10 12:45:21 +05:30
committed by Manish Verma
parent 2d90d56fcb
commit f2070a93c6
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ class TicketFetch extends Command
*/ */
public function handle() public function handle()
{ {
if (env('DB_INSTALL') == 1) { if (isInstall()) {
$controller = $this->mailController(); $controller = $this->mailController();
$emails = new \App\Model\helpdesk\Email\Emails(); $emails = new \App\Model\helpdesk\Email\Emails();
$settings_email = new \App\Model\helpdesk\Settings\Email(); $settings_email = new \App\Model\helpdesk\Settings\Email();

View File

@@ -124,7 +124,7 @@ function isInstall()
{ {
$check = false; $check = false;
$env = base_path('.env'); $env = base_path('.env');
if (\File::exists($env) && env('DB_INSTALL') == 1) { if (\File::exists($env) && \Config::get('database.install') == 1) {
$check = true; $check = true;
} }