summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-10 14:58:47 +0100
committerAndrew Dolgov <[email protected]>2005-12-10 14:58:47 +0100
commit27f089dc81d803ccfb93ef93e1e523843e3cde1f (patch)
treee103b4c21d3913661e7a74302ff450211f4c257e /functions.php
parente31073bd820fb1a9591eac0fdbb3318da6b8027e (diff)
fix empty num_comments handling (take 2)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 1 insertions, 3 deletions
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;