Permalink
Browse files

Set NEMS alias to default if null

  • Loading branch information...
NEMS Linux
NEMS Linux committed Jan 2, 2019
1 parent c79d5f2 commit 701c7b8aa918860d54e6ca5bec2bba62d214353d
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/index.php
@@ -182,7 +182,7 @@
}
file_put_contents($nemsconffile,$nemsconfoutput); // overwrite the existing config
}
if (!isset($nemsconf['alias'])) $nemsconf['alias'] = 'NEMS';
if (!isset($nemsconf['alias']) || strlen($nemsconf['alias']) == 0) $nemsconf['alias'] = 'NEMS';
function sanitize($string) {
return filter_var(trim($string),FILTER_SANITIZE_STRING);

0 comments on commit 701c7b8

Please sign in to comment.