rss MDLSITE-1007 reverted an unnecessary change I committed

This commit is contained in:
Andrew Davis
2010-10-04 09:01:41 +00:00
parent 70ff13bed7
commit c56449dff6
+1 -2
View File
@@ -346,8 +346,7 @@ function rss_geterrorxmlfile($errortype = 'rsserror') {
function rss_get_userid_from_token($token) {
global $DB;
//using strval() to make sure the token is a string not an int. Otherwise passing in numbers like 1 can cause lots of rows to match
$record = $DB->get_record('user_private_key', array('script'=>'rss','value' => strval($token)), 'userid', IGNORE_MISSING);
$record = $DB->get_record('user_private_key', array('script'=>'rss','value' => $token), 'userid', IGNORE_MISSING);
if ($record) {
return $record->userid;
}