]> git.wh0rd.org - tt-rss.git/commitdiff
fix empty num_comments handling (take 2)
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 10 Dec 2005 13:58:47 +0000 (14:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 10 Dec 2005 13:58:47 +0000 (14:58 +0100)
functions.php

index 5e789bfae0da9d500112343a8d84a0239080fb12..d977745f936cb5170d0a9b79188a674eb76979e4 100644 (file)
                                $entry_link = db_escape_string($entry_link);
                                $entry_comments = db_escape_string($entry_comments);
 
-                               if (defined($item["slash"])) {
-                                       $num_comments = db_escape_string($item["slash"]["comments"]);
-                               }
+                               $num_comments = db_escape_string($item["slash"]["comments"]);
 
                                if (!$num_comments) $num_comments = 0;