mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 01:43:06 +03:00
Replaced empty function with comparison to null because 'false' values are counted as empty.
This commit is contained in:
parent
a0680db34d
commit
00203789bc
1 changed files with 2 additions and 2 deletions
|
@ -123,12 +123,12 @@ class Providers implements ParsersInterface {
|
||||||
$decodedRequest['settings']['password'] = $request['settings']['password'];
|
$decodedRequest['settings']['password'] = $request['settings']['password'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($request['settings']['notifications'])) {
|
if ($request['settings']['notifications'] !== null) {
|
||||||
$decodedRequest['settings']['notifications'] = filter_var($request['settings']['notifications'],
|
$decodedRequest['settings']['notifications'] = filter_var($request['settings']['notifications'],
|
||||||
FILTER_VALIDATE_BOOLEAN);
|
FILTER_VALIDATE_BOOLEAN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($request['settings']['googleSync'])) {
|
if ($request['settings']['googleSync'] !== null) {
|
||||||
$decodedRequest['settings']['google_sync'] = filter_var($request['settings']['googleSync'],
|
$decodedRequest['settings']['google_sync'] = filter_var($request['settings']['googleSync'],
|
||||||
FILTER_VALIDATE_BOOLEAN);
|
FILTER_VALIDATE_BOOLEAN);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue