@@ -295,7 +295,7 @@ public function decode($record)
295295 case 'DATETSTAMP ' :
296296 if ($ record [$ key ] > 0 ) {
297297 // is value int?
298- if (ereg ( " ^[0-9]+[.]?[0-9]*$ " , $ record [$ key ], $ p )) {
298+ if (preg_match ( " / ^[0-9]+[.]?[0-9]*$/ " , $ record [$ key ], $ p )) {
299299 $ record [$ key ] = date ($ this ->lng ('conf_format_dateshort ' ), $ record [$ key ]);
300300 } else {
301301 $ record [$ key ] = date ($ this ->lng ('conf_format_dateshort ' ), strtotime ($ record [$ key ]));
@@ -305,7 +305,7 @@ public function decode($record)
305305 case 'DATE ' :
306306 if ($ record [$ key ] > 0 ) {
307307 // is value int?
308- if (ereg ( " ^[0-9]+[.]?[0-9]*$ " , $ record [$ key ], $ p )) {
308+ if (preg_match ( " / ^[0-9]+[.]?[0-9]*$/ " , $ record [$ key ], $ p )) {
309309 $ record [$ key ] = date ($ this ->lng ('conf_format_dateshort ' ), $ record [$ key ]);
310310 } else {
311311 $ record [$ key ] = date ($ this ->lng ('conf_format_dateshort ' ), strtotime ($ record [$ key ]));
@@ -316,7 +316,7 @@ public function decode($record)
316316 case 'DATETIME ' :
317317 if ($ record [$ key ] > 0 ) {
318318 // is value int?
319- if (ereg ( " ^[0-9]+[.]?[0-9]*$ " , $ record [$ key ], $ p )) {
319+ if (preg_match ( " / ^[0-9]+[.]?[0-9]*$/ " , $ record [$ key ], $ p )) {
320320 $ record [$ key ] = date ($ this ->lng ('conf_format_datetime ' ), $ record [$ key ]);
321321 } else {
322322 $ record [$ key ] = date ($ this ->lng ('conf_format_datetime ' ), strtotime ($ record [$ key ]));
0 commit comments