summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-31 08:50:17 -0300
committerRenato Botelho <renato@netgate.com>2016-05-31 08:50:17 -0300
commit3ee1e659a65f465879b3651f0bf6041ef25f0227 (patch)
treead040e35431735d43359b9b23a83eb299da1e42b /src/etc
parent701249614d761c2a04cd6ffd1bb159273d4197a3 (diff)
downloadpfsense-3ee1e659a65f465879b3651f0bf6041ef25f0227.zip
pfsense-3ee1e659a65f465879b3651f0bf6041ef25f0227.tar.gz
Improve readability
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/auth.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc
index 286f606..5731c84 100644
--- a/src/etc/inc/auth.inc
+++ b/src/etc/inc/auth.inc
@@ -409,8 +409,16 @@ function local_sync_accounts() {
if ($fd) {
while (!feof($fd)) {
$line = explode(":", fgets($fd));
- if (((!strncmp($line[0], "_", 1)) || ($line[2] < 2000) || ($line[2] > 65000)) && ($line[0] != "admin")) {
- continue;
+ if ($line[0] != "admin") {
+ if (!strncmp($line[0], "_", 1)) {
+ continue;
+ }
+ if ($line[2] < 2000) {
+ continue;
+ }
+ if ($line[2] > 65000) {
+ continue;
+ }
}
/*
* If a crontab was created to user, pw userdel will be interactive and
OpenPOWER on IntegriCloud