From 73bc0659cdc8be76328c56af7b2ab460a8bca414 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 24 Nov 2021 08:33:27 +0100 Subject: [PATCH] Corrected the database table name --- application/models/Appointments_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Appointments_model.php b/application/models/Appointments_model.php index 797f7a2f..3336c26c 100644 --- a/application/models/Appointments_model.php +++ b/application/models/Appointments_model.php @@ -212,7 +212,7 @@ class Appointments_model extends EA_Model { */ public function delete(int $appointment_id) { - if ( ! $this->db->delete('users', ['id' => $appointment_id])) + if ( ! $this->db->delete('appointments', ['id' => $appointment_id])) { throw new RuntimeException('Could not delete appointment.'); }