mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Correct validation
This commit is contained in:
parent
492a49f2b3
commit
e527d13899
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue