diff --git a/application/views/appointments/book.php b/application/views/appointments/book.php
index 5304ab2f..1e6f9d4e 100755
--- a/application/views/appointments/book.php
+++ b/application/views/appointments/book.php
@@ -101,7 +101,7 @@
$has_category = FALSE;
foreach ($available_services as $service)
{
- if ($service['category_id'] != NULL)
+ if ( ! empty($service['category_id']))
{
$has_category = TRUE;
break;
@@ -114,7 +114,7 @@
foreach ($available_services as $service)
{
- if ($service['category_id'] != NULL)
+ if ( ! empty($service['category_id']))
{
if ( ! isset($grouped_services[$service['category_name']]))
{
@@ -138,8 +138,9 @@
foreach ($grouped_services as $key => $group)
{
- $group_label = ($key != 'uncategorized')
- ? $group[0]['category_name'] : 'Uncategorized';
+ $group_label = $key !== 'uncategorized'
+ ? $group[0]['category_name']
+ : 'Uncategorized';
if (count($group) > 0)
{
@@ -258,49 +259,49 @@
-
@@ -357,7 +358,7 @@
diff --git a/application/views/backend/calendar.php b/application/views/backend/calendar.php
index b0eddbdb..281887b1 100755
--- a/application/views/backend/calendar.php
+++ b/application/views/backend/calendar.php
@@ -149,7 +149,7 @@
$has_category = FALSE;
foreach ($available_services as $service)
{
- if ($service['category_id'] != NULL)
+ if ( ! empty($service['category_id']))
{
$has_category = TRUE;
break;
@@ -162,7 +162,7 @@
foreach ($available_services as $service)
{
- if ($service['category_id'] != NULL)
+ if ( ! empty($service['category_id']))
{
if ( ! isset($grouped_services[$service['category_name']]))
{
@@ -186,17 +186,20 @@
foreach ($grouped_services as $key => $group)
{
- $group_label = ($key != 'uncategorized')
- ? $group[0]['category_name'] : 'Uncategorized';
+ $group_label = $key !== 'uncategorized'
+ ? $group[0]['category_name']
+ : 'Uncategorized';
if (count($group) > 0)
{
echo '';
}
}