aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'";