Add customer time bookings routes for public access to opening hours, types, and entries
This commit is contained in:
@@ -139,6 +139,13 @@ class department_variables_o extends db
|
||||
if (!$variable) {
|
||||
return null;
|
||||
}
|
||||
// Check if the variable is 'false' or 'true'
|
||||
if ($variable[0]['value'] === 'false') {
|
||||
return false;
|
||||
}
|
||||
if ($variable[0]['value'] === 'true') {
|
||||
return true;
|
||||
}
|
||||
return $variable[0]['value'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user