summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/application/models/file_mod.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 30b170e3e..48ae5696b 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -83,9 +83,9 @@ class File_mod extends Model {
function get_password()
{
$password = $this->input->post('password');
- if ($password !== false) {
+ if ($password !== false && $password !== "") {
return $this->hash_password($password);
- } elseif (isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_PW'] != '') {
+ } elseif (isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_PW'] !== '') {
return $this->hash_password($_SERVER['PHP_AUTH_PW']);
}
return 'NULL';