[eluser]JohnnyBravo[/eluser]
Hey everybody,
Do you have any idea why runs this query twice?
maintance_model.php
Code:
function log($name, $message, $type = 'user')
{
$entry = array(
'name' => $name,
'message' => $message,
'type' => $type,
'ip' => $this->input->ip_address(),
'logdate' => date('Y-m-d H:i:s')
);
$this->db->insert('watchdog', $entry);
}
test it
Code:
function test()
{
$this->watchdog_model->log('system', $this->lang->line('w_unlock_users'), 'maintance');
}
It insert two rows in the database, and I really don't know why?
Thx for your help!