Browse Source

fix parameter issue 76 (#77)

tomamplius 2 năm trước cách đây
mục cha
commit
526335a855
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      inc/toolbox.class.php

+ 2 - 2
inc/toolbox.class.php

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