From: jerome mouneyrac Date: Thu, 14 Jan 2010 08:46:10 +0000 (+0000) Subject: webservice MDL-20805 fix token table display in the user profil X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4387eead7986c437dc091128369557fcba8864b9;p=moodle.git webservice MDL-20805 fix token table display in the user profil --- 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) {