Bugfix: added a check to DB_Model->_addEncrypt method on the parameter encryptedColumns

This commit is contained in:
Paolo
2023-05-04 15:23:51 +02:00
parent 2f07590461
commit 1c0129466a
+3
View File
@@ -906,6 +906,9 @@ class DB_Model extends CI_Model
*/
private function _addEncrypt($encryptedColumns, &$data)
{
// If encryptedColumns is not defined then exit
if (isEmptyArray($encryptedColumns)) return;
$tmpData = array(); // Temporary array used to copy not encrypted columns
// For each column that is going to be inserted/updated