Working with the batch update.
Code:
PHP Code:
if (count($this->input->post('p_id'))){ update }else{ ! update }
evaluates to a value of 1 for 0 products selected.
evaluates to a value of 1 for 1 products selected.
evaluates to a value of 2 for 2 products selected.
gives correct value for all products selected greater than 0
all code seems to be correct from pages 190 - 193
The function works correctly unless there are 0 products selected
Any suggestions would be appreciated.
Thanks
Tom
