diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 440f25c7520101180eaec63f7fc041b73ce6b7de..5e97daa8dd5be8ae48baa406007f46716eade90e 100644 (file)
$smarty->assign("quota_u", preg_replace("/^[0-9]+/", "", $this->gosaProxyQuota));
if ($this->is_account){
$smarty->assign("proxyState", "checked");
+ } else {
+ $smarty->assign("proxyState", "");
}
/* Prepare correct state */
if (!$this->is_account){
$smarty->assign("pstate", "disabled");
+ } else {
+ $smarty->assign("pstate", "");
}
/* Show main page */
$this->handle_post_events("remove");
}
+ /* 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[]= _("Numerical value for Quota Setting is empty.");
+ }
+ else if ($_POST["quota_size"] <= 0){
+ $message[]= _("Numerical value for Quota Setting is not valid.");
+ }
+ }
+ }
+
+ return $message;
+ }
/* Save data to object */
function save_object()