mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-21 21:38:55 +01:00
fixed warning: implode(): Invalid arguments passed in /var/www/epl-trunk/etemplate/inc/class.bo_merge.inc.php on line 569
This commit is contained in:
parent
ebbbf233cf
commit
6c05070aa0
@ -557,24 +557,24 @@ abstract class bo_merge
|
|||||||
}
|
}
|
||||||
// Look for numbers, set their value if needed
|
// Look for numbers, set their value if needed
|
||||||
$format = $replacement = '';
|
$format = $replacement = '';
|
||||||
if($this->numeric_fields) {
|
if($this->numeric_fields)
|
||||||
|
{
|
||||||
$names = array();
|
$names = array();
|
||||||
foreach($this->numeric_fields as $fieldname) {
|
foreach($this->numeric_fields as $fieldname) {
|
||||||
$names[] = preg_quote($fieldname,'/');
|
$names[] = preg_quote($fieldname,'/');
|
||||||
}
|
}
|
||||||
|
switch($mimetype.$mso_application_progid)
|
||||||
|
{
|
||||||
|
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc
|
||||||
|
$format = '/<table:table-cell([^>]+?)office:value-type="([^"]+)"([^>]*?)>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\4>.?<\/table:table-cell>/s';
|
||||||
|
$replacement = '<table:table-cell$1office:value-type="float" office:value="$5"$3>$5</table:table-cell>';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if($format && $names)
|
||||||
|
{
|
||||||
|
$content = preg_replace($format, $replacement, $content);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
switch($mimetype.$mso_application_progid)
|
|
||||||
{
|
|
||||||
case 'application/vnd.oasis.opendocument.spreadsheet': // open office calc
|
|
||||||
$format = '/<table:table-cell([^>]+?)office:value-type="([^"]+)"([^>]*?)>.?<([a-z].*?)[^>]*>('.implode('|',$names).')<\/\4>.?<\/table:table-cell>/s';
|
|
||||||
$replacement = '<table:table-cell$1office:value-type="float" office:value="$5"$3>$5</table:table-cell>';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if($format && $names)
|
|
||||||
{
|
|
||||||
$content = preg_replace($format, $replacement, $content);
|
|
||||||
}
|
|
||||||
|
|
||||||
// replace CRLF with linebreak tag of given type
|
// replace CRLF with linebreak tag of given type
|
||||||
switch($mimetype.$mso_application_progid)
|
switch($mimetype.$mso_application_progid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user