Validate course count limit - refs BT#9092

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 3c70b543da
commit 7a7d5b3ee4
  1. 2
      plugin/advanced_subscription/src/AdvancedSubscriptionPlugin.php

@ -320,7 +320,7 @@ class AdvancedSubscriptionPlugin extends Plugin implements HookPluginInterface
$expendedNumMax = $plugin->get('courses_count_limit');
$expendedNum = count($sessions);
if ($expendedNumMax < $expendedNum) {
if ($expendedNumMax <= $expendedNum) {
$errorMessage = sprintf(
$this->get_lang('AdvancedSubscriptionCourseXLimitReached'),
$expendedNumMax

Loading…
Cancel
Save