Correct validation

This commit is contained in:
Alex Tselegidis 2024-03-18 11:38:09 +00:00
parent 492a49f2b3
commit e527d13899
1 changed files with 1 additions and 1 deletions

View File

@ -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) {