Improve format of orphaned application to include the query and to format the output better

This commit is contained in:
Chris Morgan
2005-10-21 02:18:10 +00:00
committed by WineHQ
parent b0d2969e0b
commit 382d08032c

View File

@@ -148,15 +148,17 @@ function orphanVersionCheck()
$hResult = query_appdb($sQuery);
$found_orphans = false;
$sMsg = "Found these orphaned versions in the database:\r\n";
$sMsg = "Found these orphaned versions in the database with\r\n";
$sMSg = "this sql command '".$sQuery."'\r\n";
/* don't report anything if no orphans are found */
if(mysql_num_rows($hResult) == 0)
return;
$sMsg .= "versionId/name\r\n";
while($oRow = mysql_fetch_object($hResult))
{
$sMsg .= "versionId: ".$oRow->versionId." Name: ".$oRow->versionName."\r\n";
$sMsg .= $oRow->versionId."/".$oRow->versionName."\r\n";
}
$sSubject = "Versions orphaned in the database\r\n";