Commit 1256395a authored by dragonwize's avatar dragonwize
Browse files

PHP4 compat fix

parent d150b422
......@@ -233,7 +233,8 @@ function better_formats_new_role($form, &$form_state) {
$sql = "SELECT rid
FROM {role}
ORDER BY rid DESC";
$rid = db_fetch_object(db_query_range($sql, 0, 1))->rid;
$row = db_fetch_object(db_query_range($sql, 0, 1));
$rid = $row->rid;
// Create stubs in per role table.
$sql = "INSERT INTO {better_formats_defaults}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment