From bfc22ec9af89c240cbce16c1f8abb17547cd4b3d Mon Sep 17 00:00:00 2001 From: xaver <xaver@ispconfig3> Date: Wed, 14 Sep 2011 15:08:09 -0400 Subject: [PATCH] fixed icon in middle vertical, for opera table th align right --- interface/lib/classes/listform.inc.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/lib/classes/listform.inc.php b/interface/lib/classes/listform.inc.php index ffa37c1..f55df7b 100644 --- a/interface/lib/classes/listform.inc.php +++ b/interface/lib/classes/listform.inc.php @@ -295,7 +295,7 @@ case 'DATETSTAMP': if ($record[$key] > 0) { // is value int? - if (ereg("^[0-9]+[.]?[0-9]*$", $record[$key], $p)) { + if (preg_match("/^[0-9]+[.]?[0-9]*$/", $record[$key], $p)) { $record[$key] = date($this->lng('conf_format_dateshort'), $record[$key]); } else { $record[$key] = date($this->lng('conf_format_dateshort'), strtotime($record[$key])); @@ -305,7 +305,7 @@ case 'DATE': if ($record[$key] > 0) { // is value int? - if (ereg("^[0-9]+[.]?[0-9]*$", $record[$key], $p)) { + if (preg_match("/^[0-9]+[.]?[0-9]*$/", $record[$key], $p)) { $record[$key] = date($this->lng('conf_format_dateshort'), $record[$key]); } else { $record[$key] = date($this->lng('conf_format_dateshort'), strtotime($record[$key])); @@ -316,7 +316,7 @@ case 'DATETIME': if ($record[$key] > 0) { // is value int? - if (ereg("^[0-9]+[.]?[0-9]*$", $record[$key], $p)) { + if (preg_match("/^[0-9]+[.]?[0-9]*$/", $record[$key], $p)) { $record[$key] = date($this->lng('conf_format_datetime'), $record[$key]); } else { $record[$key] = date($this->lng('conf_format_datetime'), strtotime($record[$key])); -- Gitblit v1.9.1