PHP 7.4
This commit is contained in:
parent
316c979ef2
commit
e58459d351
|
@ -2,10 +2,9 @@
|
||||||
namespace LAM\PROFILES;
|
namespace LAM\PROFILES;
|
||||||
use \LAMException;
|
use \LAMException;
|
||||||
/*
|
/*
|
||||||
$Id$
|
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -99,7 +98,7 @@ function loadAccountProfile($profile, $typeId) {
|
||||||
if ($file) {
|
if ($file) {
|
||||||
while (!feof($file)) {
|
while (!feof($file)) {
|
||||||
$line = fgets($file, 1024);
|
$line = fgets($file, 1024);
|
||||||
if (($line == "\n")||($line[0] == "#")) {
|
if (($line === false) || ($line == "\n") || ($line[0] == "#")) {
|
||||||
continue; // ignore comments
|
continue; // ignore comments
|
||||||
}
|
}
|
||||||
// search keywords
|
// search keywords
|
||||||
|
|
Loading…
Reference in New Issue