Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1.1
-
None
Description
day.vm in Gaurav checks existence of summary in following code:
#if($entry.summary != "") <p>$entry.summary</p> <a class="btn btn-primary" href="$url.entry($entry.anchor)">Read More <i class="icon-angle-right"></i></a> #else <p>$entry.displayContent</p> #end
I experienced WEBLOGENTRY.SUMMARY went null accidentally (https://twitter.com/lbtc_xxx/status/549181370908430338). in such case, Gaurav thinks the summary is exist and render it as "$entry.summary". I don't know how summary went null, but the db schema allows null so I guess changing comparison logic to more safer one (use $utils.isNotEmpty() instead) is reasonable.