Update: 2026-05-04 20:10:28

This commit is contained in:
Hamza-Ayed
2026-05-04 20:10:28 +03:00
parent 3ea64d59ce
commit 8d499716ce
5 changed files with 182 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ try {
$dec = function($val) {
if (empty($val)) return '';
$result = \App\Core\Encryption::decrypt((string)$val);
return ($result !== false && $result !== null && $result !== '') ? $result : (string)$val;
return ($result !== false && $result !== null) ? $result : (string)$val;
};
foreach ($companies as &$company) {

View File

@@ -63,7 +63,7 @@ try {
$dec = function($val) {
if (empty($val)) return '';
$result = \App\Core\Encryption::decrypt((string)$val);
return ($result !== false && $result !== null && $result !== '') ? $result : (string)$val;
return ($result !== false && $result !== null) ? $result : (string)$val;
};
foreach ($invoices as &$inv) {

View File

@@ -48,7 +48,7 @@ try {
$dec = function($val) {
if (empty($val)) return '';
$result = \App\Core\Encryption::decrypt((string)$val);
return ($result !== false && $result !== null && $result !== '') ? $result : (string)$val;
return ($result !== false && $result !== null) ? $result : (string)$val;
};
$invoice['supplier_tin'] = $dec($invoice['supplier_tin']);

View File

@@ -45,7 +45,7 @@ try {
$dec = function($val) {
if (empty($val)) return '';
$result = \App\Core\Encryption::decrypt((string)$val);
return ($result !== false && $result !== null && $result !== '') ? $result : (string)$val;
return ($result !== false && $result !== null) ? $result : (string)$val;
};
foreach ($users as &$user) {