]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
drop option ENABLE_SEARCH_TOOLBAR, use some more callbacks in filterCR
[tt-rss.git] / functions.php
index 02228c8864863fef8b343339260c298667fe4635..1556afc6818e597c1dfac6b68c4c0ce0bb9303ce 100644 (file)
 
        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";