Browse Source

Merge branch 'CT7396' of https://github.com/danbarretodev/chamilo-lms into danbarretodev-CT7396

Yannick Warnier 10 years ago
parent
commit
dd3c22b68e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/calendar/agenda_js.php

+ 1 - 1
main/calendar/agenda_js.php

@@ -41,7 +41,7 @@ if (api_is_platform_admin() && ($type == 'admin' || $type == 'platform')) {
 }
 
 if (isset($_REQUEST['cidReq']) && !empty($_REQUEST['cidReq'])) {
-    if ($_REQUEST['cidReq'] < 1) {
+    if ($_REQUEST['cidReq'] == -1) {
         // When is out of the course tool (e.g My agenda)
         header('Location: ' . api_get_self());
         exit;