Simple query insert duplicates

#1
[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!


Messages In This Thread
Simple query insert duplicates - by El Forum - 09-02-2010, 11:05 AM
Simple query insert duplicates - by El Forum - 09-02-2010, 01:37 PM
Simple query insert duplicates - by El Forum - 09-02-2010, 03:59 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.