summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fckeditor.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/fckeditor.module b/fckeditor.module
index 65828ff..512d484 100644
--- 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();