dont rename assetType 24
parent
050e53d5a1
commit
b21882eaa2
|
@ -10,6 +10,8 @@ while($InventarObjektRow = $InventarObjektStatement->fetch())
|
||||||
$AssetMetaDataStatement->execute(array($InventarObjektRow['assetID']));
|
$AssetMetaDataStatement->execute(array($InventarObjektRow['assetID']));
|
||||||
|
|
||||||
if($AssetMetaDataStatement->rowCount() == 0)
|
if($AssetMetaDataStatement->rowCount() == 0)
|
||||||
|
{
|
||||||
|
if($InventarObjektRow['assetType'] != '24')
|
||||||
{
|
{
|
||||||
if(!(left($InventarObjektRow['inventoryName'], 8) == '[DEFEKT]'))
|
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";
|
echo "Found missing asset for item '".$InventarObjektRow['inventoryName']."' from '".$RUNTIME['OPENSIM']->getUserName($InventarObjektRow['avatarID'])."'.\n";
|
||||||
}
|
}
|
||||||
}else{
|
}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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue