Error in includes/oldfuncs.php

Ulujain
Ulujain's picture

Joined: 2002-10-30
Posts: 46
Posted: Fri, 2002-12-13 05:53

The Random Gallery block works like a charm, but if I enable the EQ Character Edit/Roster block (www.trilogytech.com) the Random Gallery block bombs out with one of those member functions on non-object errors in line 129 of includes/oldfuncs.php. The author of the EQ block suggested renaming oldfuncs.php to something else; which works, but I'm wondering if that'll have an impact elsehwere.

I commented out these lines in oldfuncs.php in order to get Gallery Random to work. They're right down the bottom of it.
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> if ($result-&amp;gt;PO_RecordCount() == 1) {

$userinfo = $result-&amp;gt;GetRowAssoc(false);

} else {

echo "Problem obtaining user information&amp;lt;br&amp;gt;";

}
</TD></TR></TABLE><!-- BBCode End -->

FWIW, why does Postnuke think Gallery and Gallery Random are "legacy" pieces of code anyway? From whatthe Trilogytech guy said, that's how PN is treating them...