@@ -115,8 +115,9 @@ |
||
115 | 115 | public function userExists($username) { |
116 | 116 | $userList = $this->getUserList(); |
117 | 117 | |
118 | - if (isset ($userList [$username])) |
|
119 | - return true; |
|
118 | + if (isset ($userList [$username])) { |
|
119 | + return true; |
|
120 | + } |
|
120 | 121 | |
121 | 122 | return false; |
122 | 123 | } |
@@ -104,6 +104,9 @@ |
||
104 | 104 | return $usernameDeleted; |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $newContent |
|
109 | + */ |
|
107 | 110 | private function replaceHtPasswdContent($newContent) { |
108 | 111 | $fp = fopen($this->filename, 'w'); |
109 | 112 | fwrite($fp, $newContent); |