From e58459d351c5567a1202940f207e8d9d14bd4dd2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 15 Jun 2020 20:23:15 +0200 Subject: [PATCH] PHP 7.4 --- lam/lib/profiles.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lam/lib/profiles.inc b/lam/lib/profiles.inc index 1c05cccc..313b70ff 100644 --- a/lam/lib/profiles.inc +++ b/lam/lib/profiles.inc @@ -2,10 +2,9 @@ namespace LAM\PROFILES; use \LAMException; /* -$Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2003 - 2018 Roland Gruber + Copyright (C) 2003 - 2020 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -99,7 +98,7 @@ function loadAccountProfile($profile, $typeId) { if ($file) { while (!feof($file)) { $line = fgets($file, 1024); - if (($line == "\n")||($line[0] == "#")) { + if (($line === false) || ($line == "\n") || ($line[0] == "#")) { continue; // ignore comments } // search keywords