added spaces + curly braces

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 11:38:16 +01:00
parent d3391e12e3
commit ad3779fd06
5 changed files with 27 additions and 13 deletions

View file

@ -1367,7 +1367,7 @@ function prepare_body(&$item,$attach = false, $preview = false) {
// map
if(strpos($s,'<div class="map">') !== false && $item['coord']) {
$x = generate_map(trim($item['coord']));
if($x) {
if ($x) {
$s = preg_replace('/\<div class\=\"map\"\>/','$0' . $x,$s);
}
}