From: hickert Date: Tue, 16 Jan 2007 11:12:11 +0000 (+0000) Subject: Fixed Macro comment detection .. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=42c1582663e180b02f0532341c749eb278212453;p=gosa.git Fixed Macro comment detection .. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5575 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; }