• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
update_batch() parameter to not escape not working

Helo everybody!

I found a problem in the update_batch function of the DB_active_rec class  when a i try set to not escape the strings setting FALSE to the fourth parameter it don’t accept or don’t consider.

Looking inside of the DB_active_rec class I see that this option don’t exists in the function, but exists in the function that executes the escape, so i just added the parameter for my application, but i think that was important that this option exists in the original class, without i need modify then, including the CI3 that not come with this option too.

My solution:
I open the class DB_active_rec.php and added the fourth parameter in the update_batch() method setting the default value = TRUE, and changing the third parameter in $this->set_update_batch(); line:1337 from TRUE by the variable of the fourth parameter, and it's all.

I hope helps!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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