diff options
author | Jim P <jim@pingle.org> | 2013-03-03 12:21:00 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-03-03 12:21:00 -0800 |
commit | 5ff675560ff5f9c2ce53d6a69e4f60d6423c388a (patch) | |
tree | 18fc20b06f2c0ccebba9e1e52ee616105374ec67 /config/varnish3 | |
parent | b6e2a34c81676ecc62a43de5ac5f277d055f55c2 (diff) | |
parent | 3be4ae20567d99d9b97f64a157061a272a25b088 (diff) | |
download | pfsense-packages-5ff675560ff5f9c2ce53d6a69e4f60d6423c388a.tar.gz pfsense-packages-5ff675560ff5f9c2ce53d6a69e4f60d6423c388a.tar.bz2 pfsense-packages-5ff675560ff5f9c2ce53d6a69e4f60d6423c388a.zip |
Merge pull request #394 from hoerup/master
varnish3: Storage size is a mandatory field
Diffstat (limited to 'config/varnish3')
-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'"; |