diff --git a/modules/pref-filters.php b/modules/pref-filters.php
index 95721f7cb..ac6f4e68b 100644
--- a/modules/pref-filters.php
+++ b/modules/pref-filters.php
@@ -61,12 +61,14 @@
db_escape_string($line["action_param"])."' AND
owner_uid = " . $_SESSION["uid"]);
- $fg_color = db_fetch_result($tmp_result, 0, "fg_color");
- $bg_color = db_fetch_result($tmp_result, 0, "bg_color");
-
- $tmp = "α " . $line['action_param'];
+ if (db_num_rows($tmp_result) != 0) {
+ $fg_color = db_fetch_result($tmp_result, 0, "fg_color");
+ $bg_color = db_fetch_result($tmp_result, 0, "bg_color");
- $line['action_param'] = $tmp;
+ $tmp = "α " . $line['action_param'];
+
+ $line['action_param'] = $tmp;
+ }
}
}