Browse Source

fix PAGES_LIMIT condition

main
ghost 1 year ago
parent
commit
80b33f619c
  1. 2
      library/helper.php

2
library/helper.php

@ -131,7 +131,7 @@ class Helper { @@ -131,7 +131,7 @@ class Helper {
}
// Validate page limits for this host
if ($db->getTotalHostPages($hostId) > self::getHostSetting($db, $memcached, $hostId, 'PAGES_LIMIT', DEFAULT_HOST_PAGES_LIMIT)) {
if ($db->getTotalHostPages($hostId) >= self::getHostSetting($db, $memcached, $hostId, 'PAGES_LIMIT', DEFAULT_HOST_PAGES_LIMIT)) {
return false;
}

Loading…
Cancel
Save