[BUGFIX] Display correct lost records count in record statistics
[Packages/TYPO3.CMS.git] / typo3 / sysext / lowlevel / dbint / index.php
index df72e5c..99e6c72 100755 (executable)
@@ -521,8 +521,14 @@ class SC_mod_tools_dbint_index {
                                $codeArr[$t][] = $GLOBALS['LANG']->sL($GLOBALS['TCA'][$t]['ctrl']['title']);
                                $codeArr[$t][]=$t;
 
+                               if($t === 'pages' && $admin->lostPagesList !== '') {
+                                       $lostRecordCount = count(explode(',', $admin->lostPagesList));
+                               } else {
+                                       $lostRecordCount = count($admin->lRecords[$t]);
+                               }
+
                                if ($countArr['all'][$t])       {
-                                       $theNumberOfRe = intval($countArr['non_deleted'][$t]).'/'.(intval($countArr['all'][$t])-intval($countArr['non_deleted'][$t]));
+                                       $theNumberOfRe = intval($countArr['non_deleted'][$t]) . '/' . $lostRecordCount;
                                } else {
                                        $theNumberOfRe ='';
                                }
@@ -691,4 +697,4 @@ $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
\ No newline at end of file
+?>