Commit 688197e8 authored by Steven Wittens's avatar Steven Wittens

- #48997: Remove PHP notice from filter.module

parent 98834e15
......@@ -650,7 +650,7 @@ function filter_format_allowcache($format) {
function filter_list_format($format) {
static $filters = array();
if (!is_array($filters[$format])) {
if (!isset($filters[$format])) {
$filters[$format] = array();
$result = db_query("SELECT * FROM {filters} WHERE format = %d ORDER BY weight ASC", $format);
while ($filter = db_fetch_object($result)) {
......
......@@ -650,7 +650,7 @@ function filter_format_allowcache($format) {
function filter_list_format($format) {
static $filters = array();
if (!is_array($filters[$format])) {
if (!isset($filters[$format])) {
$filters[$format] = array();
$result = db_query("SELECT * FROM {filters} WHERE format = %d ORDER BY weight ASC", $format);
while ($filter = db_fetch_object($result)) {
......
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