Fixed two bugs in paginator: noisy warning when rows run out and empty strings not being treated as valid from formatting functions
--- a/includes/functions.php Sun Jun 15 01:38:33 2008 -0400
+++ b/includes/functions.php Mon Jun 16 19:04:33 2008 -0400
@@ -2426,7 +2426,7 @@
{
$tmp = ( is_callable($callers[$j]) ) ? @call_user_func($callers[$j], $val, $row) : $val;
- if ( $tmp )
+ if ( is_string($tmp) )
{
$row[$j] = $tmp;
}
@@ -2435,7 +2435,7 @@
$parser->assign_vars($row);
$parser->assign_vars(array('_css_class' => $cls));
$out .= $parser->run();
- } while ( $row = $db->fetchrow($q) );
+ } while ( $row = @$db->fetchrow($q) );
$out .= $footer;
}