1
0
Fork 0

dont rename assetType 24

master
Christopher Latza 2020-06-08 21:13:20 +02:00
parent 050e53d5a1
commit b21882eaa2
1 changed files with 16 additions and 8 deletions

View File

@ -10,6 +10,8 @@ while($InventarObjektRow = $InventarObjektStatement->fetch())
$AssetMetaDataStatement->execute(array($InventarObjektRow['assetID']));
if($AssetMetaDataStatement->rowCount() == 0)
{
if($InventarObjektRow['assetType'] != '24')
{
if(!(left($InventarObjektRow['inventoryName'], 8) == '[DEFEKT]'))
{
@ -22,7 +24,13 @@ while($InventarObjektRow = $InventarObjektStatement->fetch())
echo "Found missing asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
}
}else{
echo "Checking asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
if((left($InventarObjektRow['inventoryName'], 8) == '[DEFEKT]'))
{
echo " ==> Rename '".$InventarObjektRow['inventoryName']."' -> '".str_replace("[DEFEKT] ", "", $InventarObjektRow['inventoryName'])."'\n";
}
}
}else{
//echo "Checking asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
}
}