summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2559835)
raw | patch | inline | side by side (parent: 2559835)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 May 2005 14:59:42 +0000 (14:59 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 May 2005 14:59:42 +0000 (14:59 +0000) |
plugins/personal/connectivity/class_proxyAccount.inc | patch | blob | history |
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 06a6c0090a83161dbd24d9795ad46492399c0a4f..ff4c45d37b6b891640d7350b1174fb6f41858b55 100644 (file)
}
+ /* Check values */
+ function check()
+ {
+ $message= array();
+
+ /* We've got only one value to check for positive integer or emtpy field */
+ if ($this->is_account){
+ if (isset($_POST["quota_size"])){
+ if ($_POST["quota_size"] == ""){
+ $message[]= _("Value specified as 'Quota Size' is empty.");
+ }
+ else if ($_POST["quota_size"] <= 0){
+ $message[]= _("Value specified as 'Quota Size' is not valid.");
+ }
+ }
+ }
+
+ return $message;
+ }
+
/* Save data to object */
function save_object()
{
$this->is_modified= ($old != $this->gosaProxyQuotaPeriod)?TRUE:$this->is_modified;
}
}
-
}