From: cajus Date: Tue, 27 Sep 2005 09:40:21 +0000 (+0000) Subject: Ignore empty lines instead of placing misleading error messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9920017cc494a2fb6e64330ac800a7d345bbc758;p=gosa.git 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 --- 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)){