allways setting account_pwd and account_status (for groups too) as they are NOT NULL, thanks to olo <aleksander.adamowski-AT-gmail.com>

This commit is contained in:
Ralf Becker 2006-06-08 21:18:46 +00:00
parent 6b2d5676f9
commit 5581a73df7

View File

@ -128,6 +128,9 @@ class accounts_backend
{
if ($to_write['account_id'] < 0) $to_write['account_id'] *= -1;
if (!isset($to_write['account_pwd'])) $to_write['account_pwd'] = ''; // is NOT NULL!
if (!isset($to_write['account_status'])) $to_write['account_status'] = ''; // is NOT NULL!
if (!in_array($to_write['account_type'],array('u','g')) ||
!$this->db->insert($this->table,$to_write,false,__LINE__,__FILE__)) return false;