Author: nathangray
New Revision: 34923
URL: http://www.egroupware.org/viewvc/egroupware?rev=34923&view=rev
Log:
Avoid warnings from in_array()
Modified:
trunk/importexport/inc/class.importexport_import_csv.inc.php
Modified: trunk/importexport/inc/class.importexport_import_csv.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/importexport/inc/class.importexport_import_csv.inc.php?rev=34923&r1=34922&r2=34923&view=diff
— trunk/importexport/inc/class.importexport_import_csv.inc.php (original)
+++ trunk/importexport/inc/class.importexport_import_csv.inc.php Tue May 10 16:43:16 2011
@@ -305,7 +305,8 @@
foreach((array)$fields[‘date-time’] as $name) {
if ($record[$name] && !is_numeric($record[$name])) {
$record[$name] = egw_time::user2server($record[$name],‘ts’);
-
if(in_array($name, self::$cf_parse_cache[$appname][0]['date-time'])) {
-
if(is_array(self::$cf_parse_cache[$appname][0]['date-time']) && -
in_array($name, self::$cf_parse_cache[$appname][0]['date-time'])) { // Custom fields stored in a particular format (from customfields_widget) $record[$name] = date('Y-m-d H:i:s', $record[$name]); }
@@ -314,7 +315,8 @@
foreach((array)$fields[‘date’] as $name) {
if ($record[$name] && !is_numeric($record[$name])) {
$record[$name] = egw_time::user2server($record[$name],‘ts’);
-
if(in_array($name, self::$cf_parse_cache[$appname][0]['date'])) {
-
if(is_array(self::$cf_parse_cache[$appname][0]['date']) && -
in_array($name, self::$cf_parse_cache[$appname][0]['date'])) { // Custom fields stored in a particular format (from customfields_widget) $record[$name] = date('Y-m-d', $record[$name]); }
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs