[eluser]vitoco[/eluser]
I saw something that it's maybe a problem, the index in the post array is 'qty', so if the php configuration has GLOBALS = on, in the first cicle inside the foreach
Code:
.....
foreach($this->input->post('qty') as $k => $v)
{
$id = (int)$k;
// IF GLOBAL IS ON , maybe the array is set to int...$qty ~ $_POST['qty']
// SO CHANGE THE VARIABLE NAME TO SOMETHING ELSE AND TRY AGAIN..
$qty = (int)$v;
.....
Saludos