mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Chop off last comma for php3
This commit is contained in:
parent
e93e792876
commit
54f7afb947
@ -173,6 +173,7 @@
|
|||||||
if ($submit || $showall)
|
if ($submit || $showall)
|
||||||
{
|
{
|
||||||
$dlstring = '';
|
$dlstring = '';
|
||||||
|
$term = '';
|
||||||
|
|
||||||
if (!$download)
|
if (!$download)
|
||||||
{
|
{
|
||||||
@ -190,14 +191,13 @@
|
|||||||
$dlstring .= printout('sqlheader');
|
$dlstring .= printout('sqlheader');
|
||||||
|
|
||||||
$db = $phpgw_setup->db;
|
$db = $phpgw_setup->db;
|
||||||
$db->query("SHOW TABLES");
|
$db->query('SHOW TABLES');
|
||||||
while($db->next_record())
|
while($db->next_record())
|
||||||
{
|
{
|
||||||
$table = $db->f(0);
|
$table = $db->f(0);
|
||||||
parse_vars($table,$term);
|
parse_vars($table,$term);
|
||||||
$dlstring .= printout('sqlbody');
|
$dlstring .= printout('sqlbody');
|
||||||
}
|
}
|
||||||
|
|
||||||
$dlstring .= printout('sqlfooter');
|
$dlstring .= printout('sqlfooter');
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -214,10 +214,16 @@
|
|||||||
|
|
||||||
//$tables = explode(',',$setup_info[$appname]['tables']);
|
//$tables = explode(',',$setup_info[$appname]['tables']);
|
||||||
$tables = $setup_info[$appname]['tables'];
|
$tables = $setup_info[$appname]['tables'];
|
||||||
|
$i = 1;
|
||||||
while(list($key,$table) = @each($tables))
|
while(list($key,$table) = @each($tables))
|
||||||
{
|
{
|
||||||
|
if($i == count($tables))
|
||||||
|
{
|
||||||
|
$term = '';
|
||||||
|
}
|
||||||
parse_vars($table,$term);
|
parse_vars($table,$term);
|
||||||
$dlstring .= printout('sqlbody');
|
$dlstring .= printout('sqlbody');
|
||||||
|
$i++;
|
||||||
}
|
}
|
||||||
$dlstring .= printout('sqlfooter');
|
$dlstring .= printout('sqlfooter');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user