Code

Ignore empty lines instead of placing misleading error messages
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Sep 2005 09:40:21 +0000 (09:40 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Sep 2005 09:40:21 +0000 (09:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1430 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/macro/class_gofonMacro.inc

index ffc3c33aca3c3212e1f144695af65da607e73ca4..1beabc7b6db9bcd80d12d849b618c27af0ddd740 100755 (executable)
@@ -220,6 +220,11 @@ class macro extends plugin
         // Remove  spaces 
         $s_linestr = trim ( $s_linestr);
 
+        // Skip empty lines
+        if ($s_linestr == ""){
+          continue;
+        }
+
         // If not empty or linebreak at [0]
         if((!empty($s_linestr))&&($s_linestr[0]!=";")&&(ord($s_linestr[0]) !=13)){