]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-20805 fix token table display in the user profil
authorjerome mouneyrac <jerome@moodle.com>
Thu, 14 Jan 2010 08:46:10 +0000 (08:46 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Thu, 14 Jan 2010 08:46:10 +0000 (08:46 +0000)
user/managetoken.php

index 802d1d1fe02a5f48d68713fbdb2234384ce27621..fc90cb14c492eb6eee8da9f171c80dfefe748e13 100644 (file)
@@ -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) {