Minor - format code.

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 293f83e816
commit cd5bd27e56
  1. 1
      main/auth/courses.php
  2. 4
      main/auth/courses_categories.php

@ -184,7 +184,6 @@ if (isset($_POST['unsubscribe'])) {
$courses_controller->unsubscribe_user_from_course($_POST['unsubscribe']);
}
}
switch ($action) {
case 'subscribe_user_with_password':
$courses_controller->subscribe_user(

@ -89,8 +89,8 @@ $code = isset($code) ? $code : null;
<?php
$webAction = api_get_path(WEB_CODE_PATH).'auth/courses.php';
$action = (!empty($_REQUEST['action']) ? Security::remove_XSS($_REQUEST['action']) : 'display_courses');
$pageLength = (!empty($_REQUEST['pageLength']) ? intval($_REQUEST['pageLength']) : CoursesAndSessionsCatalog::PAGE_LENGTH);
$pageCurrent = (!empty($_REQUEST['pageCurrent']) ? intval($_REQUEST['pageCurrent']) : 1);
$pageLength = !empty($_REQUEST['pageLength']) ? intval($_REQUEST['pageLength']) : CoursesAndSessionsCatalog::PAGE_LENGTH;
$pageCurrent = !empty($_REQUEST['pageCurrent']) ? intval($_REQUEST['pageCurrent']) : 1;
$form = '<form action="'.$webAction.'" method="GET" >';
$form .= '<input type="hidden" name="action" value="'.$action.'">';
$form .= '<input type="hidden" name="pageCurrent" value="'.$pageCurrent.'">';

Loading…
Cancel
Save