aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish3/varnish.inc
diff options
context:
space:
mode:
authorTorben Nielsen <torben@t-hoerup.dk>2013-03-03 20:18:56 +0100
committerTorben Nielsen <torben@t-hoerup.dk>2013-03-03 20:18:56 +0100
commit3be4ae20567d99d9b97f64a157061a272a25b088 (patch)
tree6bdbed6f2f4a40b06daee47c99fbd880246026d8 /config/varnish3/varnish.inc
parentcb03cf432708da1e1f8edb0796ebd7fd87486c7c (diff)
downloadpfsense-packages-3be4ae20567d99d9b97f64a157061a272a25b088.tar.gz
pfsense-packages-3be4ae20567d99d9b97f64a157061a272a25b088.tar.bz2
pfsense-packages-3be4ae20567d99d9b97f64a157061a272a25b088.zip
storage size is a mandatory field
Diffstat (limited to 'config/varnish3/varnish.inc')
-rw-r--r--config/varnish3/varnish.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/varnish3/varnish.inc b/config/varnish3/varnish.inc
index 5ff2896f..3449c68b 100644
--- a/config/varnish3/varnish.inc
+++ b/config/varnish3/varnish.inc
@@ -34,7 +34,7 @@
/* ========================================================================== */
function varnish_settings_post_validate($post, $input_errors) {
- if($post['storagesize'] && !is_numeric($post['storagesize']))
+ if( !is_numeric($post['storagesize']))
$input_errors[] = "A valid number is required for the field 'Storage size'";
if($post['listeningport'] && !is_numeric($post['listeningport']))
$input_errors[] = "A valid number is required for the field 'Listening port'";