fix empty num_comments handling (take 2)
This commit is contained in:
parent
e31073bd82
commit
27f089dc81
1 changed files with 1 additions and 3 deletions
|
@ -324,9 +324,7 @@
|
||||||
$entry_link = db_escape_string($entry_link);
|
$entry_link = db_escape_string($entry_link);
|
||||||
$entry_comments = db_escape_string($entry_comments);
|
$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;
|
if (!$num_comments) $num_comments = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue