From 4387eead7986c437dc091128369557fcba8864b9 Mon Sep 17 00:00:00 2001 From: jerome mouneyrac Date: Thu, 14 Jan 2010 08:46:10 +0000 Subject: [PATCH] webservice MDL-20805 fix token table display in the user profil --- user/managetoken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/managetoken.php b/user/managetoken.php index 802d1d1fe0..fc90cb14c4 100644 --- a/user/managetoken.php +++ b/user/managetoken.php @@ -142,7 +142,7 @@ switch ($action) { FROM {external_tokens} t, {user} u, {external_services} s WHERE - t.creatorid=? AND t.tokentype = 2 AND s.id = t.externalserviceid AND t.userid = u.id"; + t.creatorid=? AND t.tokentype = ".EXTERNAL_TOKEN_PERMANENT." AND s.id = t.externalserviceid AND t.userid = u.id"; $tokens = $DB->get_records_sql($sql, array( $USER->id)); if (!empty($tokens)) { foreach ($tokens as $token) { -- 2.39.5