Commit 840425d5 authored by dragonwize's avatar dragonwize
Browse files

#349638 : Fixed role add errors reported by cgiego

parent dd5a3cac
...@@ -225,10 +225,10 @@ function better_formats_new_role($form, &$form_state) { ...@@ -225,10 +225,10 @@ function better_formats_new_role($form, &$form_state) {
$rid = db_fetch_object(db_query_range($sql, 0, 1))->rid; $rid = db_fetch_object(db_query_range($sql, 0, 1))->rid;
// create stubs in per role table // create stubs in per role table
$sql[] = "INSERT INTO {better_formats_defaults} $sql = "INSERT INTO {better_formats_defaults}
VALUES (%d, '%s', %d, %d, %d)"; VALUES (%d, '%s', %d, %d, %d)";
db_query($sql, 'node', $rid, 0, 1, 25); db_query($sql, $rid, 'node', 0, 1, 25);
db_query($sql, 'comment', $rid, 0, 1, 25); db_query($sql, $rid, 'comment', 0, 1, 25);
} }
/** /**
......
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