diff options
author | Torben Nielsen <torben@t-hoerup.dk> | 2013-03-03 20:18:56 +0100 |
---|---|---|
committer | Torben Nielsen <torben@t-hoerup.dk> | 2013-03-03 20:18:56 +0100 |
commit | 3be4ae20567d99d9b97f64a157061a272a25b088 (patch) | |
tree | 6bdbed6f2f4a40b06daee47c99fbd880246026d8 /config | |
parent | cb03cf432708da1e1f8edb0796ebd7fd87486c7c (diff) | |
download | pfsense-packages-3be4ae20567d99d9b97f64a157061a272a25b088.tar.gz pfsense-packages-3be4ae20567d99d9b97f64a157061a272a25b088.tar.bz2 pfsense-packages-3be4ae20567d99d9b97f64a157061a272a25b088.zip |
storage size is a mandatory field
Diffstat (limited to 'config')
-rw-r--r-- | config/varnish3/varnish.inc | 2 |
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'"; |