Add customer time bookings routes for public access to opening hours, types, and entries

This commit is contained in:
Jepp9350
2025-05-28 16:07:28 +02:00
parent 5fb57b88e3
commit af9c8f7dd3
6 changed files with 291 additions and 6 deletions
@@ -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'];
}