From 9920017cc494a2fb6e64330ac800a7d345bbc758 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 27 Sep 2005 09:40:21 +0000 Subject: [PATCH] Ignore empty lines instead of placing misleading error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1430 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/macro/class_gofonMacro.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gofon/macro/class_gofonMacro.inc b/plugins/gofon/macro/class_gofonMacro.inc index ffc3c33ac..1beabc7b6 100755 --- a/plugins/gofon/macro/class_gofonMacro.inc +++ b/plugins/gofon/macro/class_gofonMacro.inc @@ -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)){ -- 2.30.2