includes/functions.php
changeset 575 9c1ab9c74662
parent 574 df78a7fb91fd
child 581 5e8fd89c02ea
equal deleted inserted replaced
574:df78a7fb91fd 575:9c1ab9c74662
  2424       {
  2424       {
  2425         if ( isset($callers[$j]) )
  2425         if ( isset($callers[$j]) )
  2426         {
  2426         {
  2427           $tmp = ( is_callable($callers[$j]) ) ? @call_user_func($callers[$j], $val, $row) : $val;
  2427           $tmp = ( is_callable($callers[$j]) ) ? @call_user_func($callers[$j], $val, $row) : $val;
  2428 
  2428 
  2429           if ( $tmp )
  2429           if ( is_string($tmp) )
  2430           {
  2430           {
  2431             $row[$j] = $tmp;
  2431             $row[$j] = $tmp;
  2432           }
  2432           }
  2433         }
  2433         }
  2434       }
  2434       }
  2435       $parser->assign_vars($row);
  2435       $parser->assign_vars($row);
  2436       $parser->assign_vars(array('_css_class' => $cls));
  2436       $parser->assign_vars(array('_css_class' => $cls));
  2437       $out .= $parser->run();
  2437       $out .= $parser->run();
  2438     } while ( $row = $db->fetchrow($q) );
  2438     } while ( $row = @$db->fetchrow($q) );
  2439     $out .= $footer;
  2439     $out .= $footer;
  2440   }
  2440   }
  2441 
  2441 
  2442   $out .= $paginator;
  2442   $out .= $paginator;
  2443 
  2443