From e527d13899339c3386434b90285d1761ce72d483 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 18 Mar 2024 11:38:09 +0000 Subject: [PATCH] Correct validation --- application/models/Secretaries_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Secretaries_model.php b/application/models/Secretaries_model.php index 33502e44..b13621f6 100644 --- a/application/models/Secretaries_model.php +++ b/application/models/Secretaries_model.php @@ -79,7 +79,7 @@ class Secretaries_model extends EA_Model public function validate(array $secretary) { // If a secretary ID is provided then check whether the record really exists in the database. - if (!empty($provider['id'])) { + if (!empty($secretary['id'])) { $count = $this->db->get_where('users', ['id' => $secretary['id']])->num_rows(); if (!$count) {