mirror of
https://github.com/Combodo/iTop.git
synced 2026-08-21 13:48:22 +02:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -185,7 +185,10 @@ class XMLDataLoader
|
||||
foreach ($oXml as $sClass => $oXmlObj) {
|
||||
if (!MetaModel::IsValidClass($sClass)) {
|
||||
SetupLog::Error("Unknown class - $sClass");
|
||||
continue; // Trying to load non-existing class, ignore it
|
||||
if ($bUpdateKeyCacheOnly) {
|
||||
continue; // A class from the previous data model may no longer exist during an upgrade
|
||||
}
|
||||
throw(new Exception("Unknown class - $sClass"));
|
||||
}
|
||||
|
||||
$iSrcId = (int)$oXmlObj['id']; // Mandatory to cast
|
||||
|
||||
Reference in New Issue
Block a user