summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-11 10:37:18 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-11 10:37:44 (GMT)
commit3899e02d0c124fb0058e3d355793c442821feb9c (patch)
treeb05deaaaa1dace6262b3214be4dc145b99d5c3a5
parent68e6c59f5f8af54c85953ef21fa2a53d6fc11fe9 (diff)
downloadkolab-wap-3899e02d0c124fb0058e3d355793c442821feb9c.tar.gz
Correct throwing Exceptions, rather than raising them </Pythonism>kolab-webadmin-3.1.5
-rw-r--r--lib/api/kolab_api_service_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 202510d..4d985bb 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -214,7 +214,7 @@ class kolab_api_service_user extends kolab_api_service
}
if ($users['count'] > 1) {
- raise Exception, "More than a single entry found.";
+ throw new Exception("More than a single entry found.", 942);
}
// get user data