diff --git a/core/client/views/settings.js b/core/client/views/settings.js index 4bce8f1f33..4739816163 100644 --- a/core/client/views/settings.js +++ b/core/client/views/settings.js @@ -174,6 +174,10 @@ Ghost.Validate .check(postsPerPage, {message: "Please use a number less than 1000", el: $('postsPerPage')}) .isInt().max(1000); + Ghost.Validate + .check(postsPerPage, {message: "Please use a number greater than 0", el: $('postsPerPage')}) + .isInt().min(0); + if (Ghost.Validate._errors.length > 0) { Ghost.Validate.handleErrors();