summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfc8d3e)
raw | patch | inline | side by side (parent: bfc8d3e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 07:52:11 +0000 (07:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 07:52:11 +0000 (07:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9285 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc b/gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc
index 1df34586367e03f4c4336562705d6d84de0185ae..4672365d50809a4fffd79fdf25d9716eb014af53 100644 (file)
$message= plugin::check();
/* We've got only one value to check for positive integer or emtpy field */
- if ($this->is_account){
- if($this->acl_is_writeable("gosaProxyQuota")){
- if (isset($_POST["quota_size"])){
- if ($_POST["quota_size"] == "gosaProxyQuota"){
- $message[]= _("Numerical value for Quota Setting is empty.");
- }elseif ($_POST["quota_size"] <= 0){
- $message[]= _("Numerical value for Quota Setting is not valid.");
- }
+ if ($this->is_account && $this->acl_is_writeable("gosaProxyQuota")){
+ if (isset($_POST["quota_size"])){
+ if ($_POST["quota_size"] == "gosaProxyQuota"){
+ $message[]= msgPool::invalid(_("Quota Setting"));
+ }elseif ($_POST["quota_size"] <= 0){
+ $message[]= msgPool::invalid(_("Quota Setting"),$_POST["quota_size"],"/^[0-9]/");
}
}
}