From: Andrew Dolgov Date: Sat, 10 Dec 2005 13:58:47 +0000 (+0100) Subject: fix empty num_comments handling (take 2) X-Git-Tag: schema_freeze_for_1.1.1~77 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=27f089dc81d803ccfb93ef93e1e523843e3cde1f;p=tt-rss.git fix empty num_comments handling (take 2) --- diff --git a/functions.php b/functions.php index 5e789bfa..d977745f 100644 --- a/functions.php +++ b/functions.php @@ -324,9 +324,7 @@ $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;