codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

unserialize method not checking row is empty

Open arifmahmudrana opened this issue 10 years ago • 0 comments
trafficstars

In your code at https://github.com/jamierumbelow/codeigniter-base-model/blob/master/core/MY_Model.php#L703 in this method you aren't actually checking if the row is empty or not as a result when it tries to unserialize it throws notice. So you better check if the row is empty or not first then unserialize.

arifmahmudrana avatar Dec 03 '14 06:12 arifmahmudrana