Pārlūkot izejas kodu

Fixing notice probably due #4402

Julio Montoya 13 gadi atpakaļ
vecāks
revīzija
465cc3062f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      main/inc/local.inc.php

+ 2 - 2
main/inc/local.inc.php

@@ -664,8 +664,8 @@ if ($gidReq && $gidReq != $gid) {
             
             // If request_uri is setted we have to go further to have course permissions
             if (empty($_SESSION['request_uri']) || !isset($_SESSION['request_uri'])) {
-                if ($_SESSION['noredirection']) {
-                    //If we just want to reser  info without redirecting user
+                if (isset($_SESSION['noredirection'])) {
+                    //If we just want to reset info without redirecting user
                     unset($_SESSION['noredirection']);
                 } else {
                     require_once api_get_path(LIBRARY_PATH).'loginredirection.lib.php';