mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 01:52:22 +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.
|
// Validate secretary providers.
|
||||||
if (!empty($secretary['providers'])) {
|
if (!empty($secretary['providers'])) {
|
||||||
// Make sure the provided provider entries are numeric values.
|
// Make sure the provided provider entries are numeric values.
|
||||||
foreach ($secretary['providers'] as $secretary_id) {
|
foreach ($secretary['providers'] as $provider_id) {
|
||||||
if (!is_numeric($secretary_id)) {
|
if (!is_numeric($provider_id)) {
|
||||||
throw new InvalidArgumentException(
|
throw new InvalidArgumentException(
|
||||||
'The provided secretary providers are invalid: ' . print_r($secretary, true),
|
'The provided secretary providers are invalid: ' . print_r($secretary, true),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue