Skip to content

Commit

Permalink
Correct validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Mar 18, 2024
1 parent 492a49f commit e527d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Secretaries_model.php
Expand Up @@ -79,7 +79,7 @@ public function save(array $secretary): int
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) {
Expand Down

0 comments on commit e527d13

Please sign in to comment.