summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-10-01 08:00:04 +0100
committerAndrew Dolgov <[email protected]>2006-10-01 08:00:04 +0100
commitc91c224952dae21939c8d6d13fb692328e9f65c2 (patch)
treedb528483d2f35d78763a4da6172bb3de478211b3 /functions.php
parent6e6504bc029415d347712da5a0ca4ed39e394cf3 (diff)
drop option ENABLE_SEARCH_TOOLBAR, use some more callbacks in filterCR
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 02228c886..1556afc68 100644
--- a/functions.php
+++ b/functions.php
@@ -1877,7 +1877,9 @@
function subscribe_to_feed($link, $feed_link, $cat_id = 0) {
- $feed_link = preg_replace("/^feed:/", "", $feed_link);
+ $feed_link = trim(preg_replace("/^feed:/", "", $feed_link));
+
+ if ($feed_link == "") return;
if ($cat_id == "0" || !$cat_id) {
$cat_qpart = "NULL";