summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd6bf22)
raw | patch | inline | side by side (parent: bd6bf22)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jan 2011 14:41:10 +0000 (14:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 14 Jan 2011 14:41:10 +0000 (14:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@20591 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index b68c9e55043df871de1b9a7817df971f83d9ae5b..fde2df70e0fb1343eade77fd7793ef86b8647b42 100644 (file)
if(!isset($match[5])){
$replacements[$match[0]][] = $attributes[$match[2]];
- // Start given but no end, so just add a simple character
+ // Start given but no end, so just add a single character
}elseif(!isset($match[7])){
if(isset($attributes[$match[2]][$match[5]])){
- $replacements[$match[0]][] = $attributes[$match[2]][$match[5]];
+ $tmp = " ".$attributes[$match[2]];
+ $replacements[$match[0]][] = trim($tmp[$match[5]]);
}
// Add all values in range
$str = "";
for($i=$match[5]; $i<= $match[7]; $i++){
if(isset($attributes[$match[2]][$i])){
- $str .= $attributes[$match[2]][$i];
- $replacements[$match[0]][] = $str;
+ $tmp = " ".$attributes[$match[2]];
+ $str .= $tmp[$i];
+ $replacements[$match[0]][] = trim($str);
}
}
}