# HG changeset patch # User Dan # Date 1213657473 14400 # Node ID 9c1ab9c7466273bc64c88694e1ff39f6996f1736 # Parent df78a7fb91fd0279d24a6af67cb8b9f817f607be Fixed two bugs in paginator: noisy warning when rows run out and empty strings not being treated as valid from formatting functions diff -r df78a7fb91fd -r 9c1ab9c74662 includes/functions.php --- 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; }