From 27f089dc81d803ccfb93ef93e1e523843e3cde1f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 10 Dec 2005 14:58:47 +0100 Subject: fix empty num_comments handling (take 2) --- functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 5e789bfae..d977745f9 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; -- cgit v1.2.3