fix syntax error

This commit is contained in:
Uwe Steinmann 2017-02-28 17:12:27 +01:00
parent 6e9b840e45
commit e9c029e8fc

View File

@ -1878,7 +1878,7 @@ class SeedDMS_Core_DMS {
$role = $role->getID();
elseif($role == '')
$role = '0';
if(trim($pwdexpiration) == '' || trim($pwdexpiration) == 'never')
if(trim($pwdexpiration) == '' || trim($pwdexpiration) == 'never') {
$pwdexpiration = 'NULL';
} elseif(trim($pwdexpiration) == 'now') {
$pwdexpiration = $db->qstr(date('Y-m-d H:i:s'));