catch the case if no $hash is given

This commit is contained in:
HB9HIL
2024-08-16 19:56:35 +02:00
parent 65ec95814f
commit 016f3767c1

View File

@@ -1163,7 +1163,7 @@ class User extends CI_Controller {
return false;
}
public function impersonate($hash) {
public function impersonate($hash = false) {
if ($this->config->item('encryption_key') == 'flossie1234555541') {
$this->session->set_flashdata('error', __("You currently can't impersonate another user. Please change the encryption_key in the config file first!"));