mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-24 17:03:27 +03:00
Fix Validation
This commit is contained in:
parent
e527d13899
commit
da6d017ff1
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@ class Secretaries_model extends EA_Model
|
|||
// Validate secretary providers.
|
||||
if (!empty($secretary['providers'])) {
|
||||
// Make sure the provided provider entries are numeric values.
|
||||
foreach ($secretary['providers'] as $secretary_id) {
|
||||
if (!is_numeric($secretary_id)) {
|
||||
foreach ($secretary['providers'] as $provider_id) {
|
||||
if (!is_numeric($provider_id)) {
|
||||
throw new InvalidArgumentException(
|
||||
'The provided secretary providers are invalid: ' . print_r($secretary, true),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue