From 42c1582663e180b02f0532341c749eb278212453 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 16 Jan 2007 11:12:11 +0000 Subject: [PATCH] Fixed Macro comment detection .. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5575 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/macro/class_gofonMacro.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/gofon/macro/class_gofonMacro.inc b/plugins/gofon/macro/class_gofonMacro.inc index e3c67e4ae..47317c95b 100755 --- a/plugins/gofon/macro/class_gofonMacro.inc +++ b/plugins/gofon/macro/class_gofonMacro.inc @@ -269,9 +269,10 @@ class macro extends plugin * Remove comments introduced by ; * Skip empty lines */ - $s_linestr = preg_replace ("/^.*=\> /","",$s_linestr); - $s_linestr = preg_replace("/;.*$/","",$s_linestr) ; $s_linestr = trim($s_linestr); + $s_linestr = preg_replace("/;.*$/","",$s_linestr) ; + $s_linestr = preg_replace ("/^.*=\> /","",$s_linestr); + if(empty($s_linestr)){ continue; } -- 2.30.2