Fix "PHP Warning: Missing argument 1 for rcmail::log_login()"

pull/92/merge
Aleksander Machniak 11 years ago
parent 060467df9d
commit 0f5574913f

@ -954,7 +954,7 @@ class rcmail extends rcube
/** /**
* Write login data (name, ID, IP address) to the 'userlogins' log file. * Write login data (name, ID, IP address) to the 'userlogins' log file.
*/ */
public function log_login($user, $failed_login = false, $error_code = 0) public function log_login($user = null, $failed_login = false, $error_code = 0)
{ {
if (!$this->config->get('log_logins')) { if (!$this->config->get('log_logins')) {
return; return;

Loading…
Cancel
Save