aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-03-04 11:53:57 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-03-04 11:53:57 +0100
commit2818c72f5ae00276a083d0c24454394e9d064c7c (patch)
treef14e842fbc320d3f3c1331dae62eb7e24aaf2517 /lib
parent27a4c165edca28e1da28ff9bf5ceb0f5b38e7f5f (diff)
Changelog CLI
https://github.com/FreshRSS/FreshRSS/issues/1443 https://github.com/FreshRSS/FreshRSS/pull/1444 https://github.com/FreshRSS/FreshRSS/issues/1445 https://github.com/FreshRSS/FreshRSS/pull/1447 https://github.com/FreshRSS/FreshRSS/issues/1448 https://github.com/FreshRSS/FreshRSS/issues/1449
Diffstat (limited to 'lib')
-rw-r--r--lib/lib_rss.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 2d593b6a2..4298e90bf 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -295,7 +295,10 @@ function invalidateHttpCache($username = '') {
function listUsers() {
$final_list = array();
$base_path = join_path(DATA_PATH, 'users');
- $dir_list = scandir($base_path);
+ $dir_list = array_values(array_diff(
+ scandir($base_path),
+ array('..', '.', '_')
+ ));
foreach ($dir_list as $file) {
if ($file[0] !== '.' && is_dir(join_path($base_path, $file)) && file_exists(join_path($base_path, $file, 'config.php'))) {
$final_list[] = $file;