R28317 - /trunk/etemplate/inc/class.nextmatch_widget.inc.php

Author: ralfbecker
New Revision: 28317

URL: http://www.egroupware.org/viewvc/egroupware?rev=28317&view=rev
Log:
“fixed again which row to use, if we have to autodetect the fields:
we start now from the beginning searching for the first row of type array
(previously we tried the first and last row)”

Modified:
trunk/etemplate/inc/class.nextmatch_widget.inc.php

Modified: trunk/etemplate/inc/class.nextmatch_widget.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/etemplate/inc/class.nextmatch_widget.inc.php?rev=28317&r1=28316&r2=28317&view=diff

— trunk/etemplate/inc/class.nextmatch_widget.inc.php (original)
+++ trunk/etemplate/inc/class.nextmatch_widget.inc.php Sat Nov 14 08:17:19 2009
@@ -1010,8 +1010,12 @@
//echo “

start=$value[start], num_rows=$value[num_rows]: total=$total, count($rows)=”.count($rows)."

\n";
if (!$value[‘start’]) // send the neccessary headers
{
  •   		// use last row for header detection, as first row(s) might be empty to skip header row(s) of template
    
  •   		$fp = self::csv_open($rows[count($rows)-1],$value['csv_fields'],$app,$charset_out,$charset,$separator);
    
  •   		// skip empty data row(s) used to adjust to number of header-lines
    
  •   		foreach($rows as $row0)
    
  •   		{
    
  •   			if (is_array($row0) && count($row0) > 1) break;
    
  •   		}
    
  •   		$fp = self::csv_open($row0,$value['csv_fields'],$app,$charset_out,$charset,$separator);
      	}
      	foreach($rows as $key => $row)
      	{
    

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs