There is a minor problem with xoops_astro.php in classes directory. It doesn't display the astro image/name if you have a birthday between 21.01-01.02 at all. Here's that code which handles it: Code:
function &getTitelAstro($xdatum) { global $db; $mon = substr($xdatum,5,2); $tag = substr($xdatum,-2); if ($mon == "01") { $where_str = "(date1 >= \"12-$tag\" and date2 >= \"$mon-$tag\")"; }else{ $where_str = "(date1 <= \"$mon-$tag\" and date2 >= \"$mon-$tag\")"; } $sql = "SELECT title FROM ".$db->prefix("astro")." WHERE ".$where_str.""; //echo $sql."<br>"; $result = $db->query($sql); list($title) = $db->fetch_row($result); return $title; }
I think it is the first where_str which causes this bug.
bama :
14.11.2004 12:20
Hi Pnooka,
wechsle mal beiliegende /class/xoops_astro.php aus