diff --git a/application/models/Appointments_model.php b/application/models/Appointments_model.php index 4c81b6ff..257a0afa 100644 --- a/application/models/Appointments_model.php +++ b/application/models/Appointments_model.php @@ -117,7 +117,8 @@ class Appointments_model extends EA_Model { ->join('roles', 'roles.id = users.id_roles', 'inner') ->where('users.id', $appointment['id_users_customer']) ->where('roles.slug', DB_SLUG_CUSTOMER) - ->get()->num_rows(); + ->get() + ->num_rows(); if ( ! $count) {