* [refac bug #63735] Adjust logHistory method.

This commit is contained in:
wangyidong
2025-06-26 11:45:19 +08:00
parent 9c85fde1d6
commit 7b1f62d0bc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -632,7 +632,7 @@ class actionModel extends model
*/
public function logHistory(int $actionID, array $changes): bool
{
if(empty($actionID)) return false;
if(empty($actionID) || empty($changes)) return false;
foreach($changes as $change)
{
$change = is_array($change) ? json_decode(json_encode($change)) : $change;
@@ -2720,4 +2720,4 @@ class actionModel extends model
}
return array_values($actions);
}
}
}