Code

Fixed Macro comment detection ..
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Jan 2007 11:12:11 +0000 (11:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 16 Jan 2007 11:12:11 +0000 (11:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5575 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/macro/class_gofonMacro.inc

index e3c67e4aef29d407c07a4991ac8f5b571be80133..47317c95b3d47df5f1f9c3a938681b07045e1542 100755 (executable)
@@ -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;
       }