mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-19 05:48:02 -04:00
PSR compliance and formatting changes
- Replaced TRUE/FALSE constants with true/false keywords - Replaced NULL constant with null keyword - Replaced `<?php echo` in views with shortened `<?=` - Added missing variable declaration - Added missing function return type in declaration - replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
This commit is contained in:
@@ -49,7 +49,7 @@ class Secure_Controller extends BaseController
|
||||
|
||||
// load up global global_view_data visible to all the loaded views
|
||||
$this->session = session();
|
||||
if($menu_group == NULL)
|
||||
if($menu_group == null)
|
||||
{
|
||||
$menu_group = $this->session->get('menu_group');
|
||||
}
|
||||
@@ -62,6 +62,7 @@ class Secure_Controller extends BaseController
|
||||
? $this->module->get_allowed_home_modules($logged_in_employee_info->person_id)
|
||||
: $this->module->get_allowed_office_modules($logged_in_employee_info->person_id);
|
||||
|
||||
$global_view_data = [];
|
||||
foreach($allowed_modules->getResult() as $module)
|
||||
{
|
||||
$global_view_data['allowed_modules'][] = $module;
|
||||
|
||||
Reference in New Issue
Block a user