diff --git a/application/core/DB_Model.php b/application/core/DB_Model.php index 97e94c4c2..79040dc66 100644 --- a/application/core/DB_Model.php +++ b/application/core/DB_Model.php @@ -909,6 +909,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 diff --git a/application/core/IEncryption.php b/application/core/IEncryption.php new file mode 100644 index 000000000..6b9132c23 --- /dev/null +++ b/application/core/IEncryption.php @@ -0,0 +1,24 @@ +. + */ + +interface IEncryption +{ + public function getEncryptedColumns(): array; +} +