From 198f16f7a94202ff2e77dd0037ff1eedc9930ee7 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sat, 11 Jan 2014 12:00:42 +0000 Subject: [PATCH] PRESENCE: fixing wrong string operator git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4619 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_PRESENCE.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index e2ab05e52..519999a8c 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -91,7 +91,7 @@ PRESENCE_Define($$) return $msg; } - unless($username == "root") + unless($username eq "root") { my $msg = "FHEM is not running under root (currently $username) This check can only performed with root access to the FritzBox"; Log 2, "PRESENCE: ".$msg; @@ -106,7 +106,7 @@ PRESENCE_Define($$) } elsif($a[2] eq "lan-ping") { - if(-X "/usr/bin/ctrlmgr_ctl" and not $username == "root") + if(-X "/usr/bin/ctrlmgr_ctl" and not $username eq "root") { my $msg = "FHEM is not running under root (currently $username) This check can only performed with root access to the FritzBox"; Log 2, "PRESENCE: ".$msg;