includes/functions.php
changeset 575 9c1ab9c74662
parent 574 df78a7fb91fd
child 581 5e8fd89c02ea
--- 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;
   }