Browse Source

fix parameter issue 76 (#77)

tomamplius 2 years ago
parent
commit
526335a855
1 changed files with 2 additions and 2 deletions
  1. 2 2
      inc/toolbox.class.php

+ 2 - 2
inc/toolbox.class.php

@@ -34,12 +34,12 @@ class PluginSinglesignonToolbox {
     * @param array $query
     * @param array $query
     * @return string
     * @return string
     */
     */
-   public static function getCallbackUrl($id, $query = []) {
+   public static function getCallbackUrl($row, $query = []) {
       global $CFG_GLPI;
       global $CFG_GLPI;
 
 
       $url = $CFG_GLPI['root_doc'] . '/plugins/singlesignon/front/callback.php';
       $url = $CFG_GLPI['root_doc'] . '/plugins/singlesignon/front/callback.php';
 
 
-      $url .= "/provider/".$id;
+      $url .= "/provider/".$row['id'];
 
 
       if (!empty($query)) {
       if (!empty($query)) {
          $_SESSION['redirect'] = $query['redirect'];
          $_SESSION['redirect'] = $query['redirect'];