Commit e2901718 authored by dragonwize's avatar dragonwize
Browse files

Fixed #682216 by wwalc, dragonwize: Fix E_NOTICE.

parent 443830eb
......@@ -192,7 +192,7 @@ function better_formats_get_formats_per_role() {
*/
function better_formats_get_roles_by_perm($perm, $reset = FALSE) {
static $roles;
if ($reset || !$roles[$perm]) {
if ($reset || !isset($roles[$perm])) {
$sql = "SELECT rid
FROM {permission}
WHERE perm LIKE '%$perm%'
......
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