diff options
| author | 2017-03-02 22:57:02 +0100 | |
|---|---|---|
| committer | 2017-03-02 22:57:02 +0100 | |
| commit | 9c012e6c81e435736bfef78e0669cd236ed9d73b (patch) | |
| tree | 0130fec1fb948d9910fab11aa51a8a115cc58461 /lib | |
| parent | c67180530be4f322267cbd50934a96dfab5fc8f3 (diff) | |
Fix SQLite CLI install
https://github.com/FreshRSS/FreshRSS/issues/1445
https://github.com/FreshRSS/FreshRSS/issues/1443
https://github.com/FreshRSS/FreshRSS/issues/1443
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_rss.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index aaeeb431f..2d593b6a2 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -295,17 +295,12 @@ function invalidateHttpCache($username = '') { function listUsers() { $final_list = array(); $base_path = join_path(DATA_PATH, 'users'); - $dir_list = array_values(array_diff( - scandir($base_path), - array('..', '.', '_') - )); - + $dir_list = scandir($base_path); foreach ($dir_list as $file) { - if (is_dir(join_path($base_path, $file))) { + if ($file[0] !== '.' && is_dir(join_path($base_path, $file)) && file_exists(join_path($base_path, $file, 'config.php'))) { $final_list[] = $file; } } - return $final_list; } |
