Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70ff13b
)
rss MDLSITE-1007 reverted an unnecessary change I committed
author
Andrew Davis
<andrew@affinitysoftware.net>
Mon, 4 Oct 2010 09:01:41 +0000
(09:01 +0000)
committer
Andrew Davis
<andrew@affinitysoftware.net>
Mon, 4 Oct 2010 09:01:41 +0000
(09:01 +0000)
lib/rsslib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/rsslib.php
b/lib/rsslib.php
index
5e8d993
..
3159960
100644
(file)
--- a/
lib/rsslib.php
+++ b/
lib/rsslib.php
@@
-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;
}