projects
/
project/fckeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5d2db5b
)
Fixed invalid code when no access fckeditor permissions assigned
author
Wiktor Walc
Fri, 10 Oct 2008 13:11:07 +0000 (13:11 +0000)
committer
Wiktor Walc
Fri, 10 Oct 2008 13:11:07 +0000 (13:11 +0000)
fckeditor.module
patch
|
blob
|
blame
|
history
diff --git
a/fckeditor.module
b/fckeditor.module
index
65828ff
..
512d484
100644
(file)
--- a/
fckeditor.module
+++ b/
fckeditor.module
@@
-842,7
+842,8
@@
function fckeditor_user_get_profile($user, $element_id = NULL) {
}
if ($user->uid == 1 && !sizeof($rids)) {
- $rids[] = db_query_range("SELECT r.rid FROM {fckeditor_role} r ORDER BY r.rid DESC", 1);
+ $r = db_fetch_object(db_query_range("SELECT r.rid FROM {fckeditor_role} r ORDER BY r.rid DESC", 1));
+ $rids[] = $r->rid;
}
$profile_names = array();