Topic: Missing DIV in page output..
Hi guys,
I've got this problem with the Miniportal sidebar versus the Calendar Mod
A user would click the edit an event link;
if there's no event to edit, this code
if(!$db->num_rows($result)){
message($lang_calendar['no_events']);
}
will generate this particular output in the whole php page
<!--Calendar Version:2.0.6a -->
<div class="blocktable">
<div id="msg" class="block">
<h2><span>Info</span></h2>
<div class="box">
<div class="inbox">
<p>There is no event to edit</p>
<p><a href="javascript: history.go(-1)">Go Back</a></p>
</div>
</div>
</div>
</div>
</div>
but a </div> tag is missing in the code ^^ so the sidebar won't display properly... This output display the sidebar below the There is no event to edit message. So instead of getting the correct display as show below, I get the result as shown at the bottom of this image.
anyone know how I could make an extra </div> appear in the ^^ code whenever this function is called?. Or any other way to fix this problem?
I'm willing to provide additional files/code if necessary...
Thanks!