summaryrefslogtreecommitdiff
path: root/inc/auth/plain.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth/plain.class.php')
-rw-r--r--inc/auth/plain.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth/plain.class.php b/inc/auth/plain.class.php
index 02175d962..68976287a 100644
--- a/inc/auth/plain.class.php
+++ b/inc/auth/plain.class.php
@@ -278,8 +278,8 @@ class auth_plain extends auth_basic {
$line = trim($line);
if(empty($line)) continue;
- $row = split(":",$line,5);
- $groups = split(",",$row[4]);
+ $row = explode(":",$line,5);
+ $groups = array_values(array_filter(explode(",",$row[4])));
$this->users[$row[0]]['pass'] = $row[1];
$this->users[$row[0]]['name'] = urldecode($row[2]);