summaryrefslogtreecommitdiff
path: root/lib/kolab_api_service.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-10-02 13:12:05 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-10-02 13:12:05 (GMT)
commit1d99b6e0995f7eafc8a38cfc3196925d9168f2bb (patch)
treed96990e1589a9b0754c0a49f1820d32280c2a726 /lib/kolab_api_service.php
parentc4ff3570cb284f0b786146b169c0def686c84ca3 (diff)
downloadkolab-wap-1d99b6e0995f7eafc8a38cfc3196925d9168f2bb.tar.gz
Fix various validation inconsistences and empty value checks
Diffstat (limited to 'lib/kolab_api_service.php')
-rw-r--r--lib/kolab_api_service.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index 8294dcd..fa5bd8e 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -286,7 +286,7 @@ abstract class kolab_api_service
$special_attr_validate = Array();
foreach ($validate_result as $attr_name => $value) {
- if (!empty($value) && $value !== "OK" && $value !== 0) {
+ if ($value !== false && $value !== '' && $value !== null && $value !== "OK") {
$special_attr_validate[$attr_name] = $value;
}
}