From 77dd36ccc944c060b5e8cbe657c77e2fb748e5ba Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 25 Jan 2010 08:16:27 +0000 Subject: [PATCH] Remove double border on the right in some cases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15273 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 651e37f9e..935da9866 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -279,7 +279,7 @@ class listing { $height= $this->height; } - $result.= "
\n"; + $result.= ""; } else { - $result.= ""; + $result.= ""; } } $result.= ""; @@ -621,15 +621,18 @@ class listing { $res.= "min-width:200px;"; } - $result[$index]= " style='$res' "; + $result[$index]= " style='$res'"; } else { - $result[$index]= " style='min-width:100px'"; + $result[$index]= " style='min-width:100px;'"; } } // Save number of columns for later use $this->numColumns= count($cols); + // Add no border to the last column + $result[$this->numColumns-1]= preg_replace("/'$/", "border-right:0;'", $result[$this->numColumns-1]); + return $result; } -- 2.30.2
\n"; $height= ""; if ($switch){ @@ -398,7 +398,7 @@ class listing { if ($i != $this->numColumns-1) { $result.= "