From 61e886be6e0443724c801ef2da33a55d3a9f5d01 Mon Sep 17 00:00:00 2001 From: pavlosb Date: Sat, 29 Jun 2024 10:28:16 +0300 Subject: [PATCH] Update Inspection.php --- application/controllers/Inspection.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/application/controllers/Inspection.php b/application/controllers/Inspection.php index ba4c3aa..7a43dbc 100644 --- a/application/controllers/Inspection.php +++ b/application/controllers/Inspection.php @@ -26,10 +26,17 @@ public function __construct() $this->load->helper('form'); $this->lang->load('itin','greek'); $sesdata = $this->session->userdata; - $this->data = array( - 'user_lang' => $sesdata['site_lang'], - 'usrgrp' => 3 - ); + $this->data['usrgrp'] = 3; + if (isset($sesdata['user_lang'])) { + $this->data['user_lang'] = $sesdata['site_lang']; + } else { + $this->data['user_lang'] = "greek"; + } + + //$this->data = array( + //'user_lang' => $sesdata['site_lang'], + //'usrgrp' => 3 + //); } public function index()