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'); $expendedNumMax = $plugin->get('courses_count_limit');
$expendedNum = count($sessions); $expendedNum = count($sessions);
if ($expendedNumMax < $expendedNum) { if ($expendedNumMax <= $expendedNum) {
$errorMessage = sprintf( $errorMessage = sprintf(
$this->get_lang('AdvancedSubscriptionCourseXLimitReached'), $this->get_lang('AdvancedSubscriptionCourseXLimitReached'),
$expendedNumMax $expendedNumMax

Loading…
Cancel
Save