From 382d08032c3ca84f1e2496afa55299377f2277ad Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 21 Oct 2005 02:18:10 +0000 Subject: [PATCH] Improve format of orphaned application to include the query and to format the output better --- cron/cleanup.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cron/cleanup.php b/cron/cleanup.php index b744fec..16a97ff 100644 --- a/cron/cleanup.php +++ b/cron/cleanup.php @@ -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";