]> git.wh0rd.org Git - tt-rss.git/commitdiff
catchupArticlesById: return when there are no ids to catchup
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 24 Mar 2010 10:28:20 +0000 (13:28 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 24 Mar 2010 10:28:20 +0000 (13:28 +0300)
functions.php

index 28f49b61e8302704bbd6cf5cab4b619a9250d68a..bc520490316b142212e31003f3a4b30aea58f7f2 100644 (file)
        function catchupArticlesById($link, $ids, $cmode, $owner_uid = false) {
 
                if (!$owner_uid) $owner_uid = $_SESSION["uid"];
+               if (count($ids) == 0) return;
 
                $tmp_ids = array();