PDA

View Full Version : trigger popup (dependency bug)


zyclonite
11-07-2006, 14:28
a small workaround is:

in popup.php line 250:


if($row1=DBfetch($result1))
{
# array_push($description,BR.BR."<strong>".S_DEPENDS_ON."</strong>".SPACE.BR);
$description->AddItem(BR.BR."<strong>".S_DEPENDS_ON."</strong>".SPACE.BR);
do
{
# array_push($description,expand_trigger_description ($row1["triggerid"]).BR);
$description->AddItem(expand_trigger_description($row1["triggerid"]).BR);
} while( $row1=DBfetch($result1));
# array_push($description,BR);
$description->AddItem(BR);
}


is only needed if you have deps on a trigger -> the array push will throw a warning because $description is not an array