Repository: ampache/ampache (language: php)

Issue:
Catalogue statistics corrupted after latest commit
# Issue Template

<!--
1. Delete any section that is not relevant in this template.
2. Before posting an issue, please try to reproduce with the latest `develop` branch. There is a good chance a fix is already pending for the next version. No issue will be considered before confirmation on the `develop` branch.
3. Any text between `<!--` and `--\>` will be removed automatically.
-->

## Description

**Describe the bug**
After upgrading to the latest commit 8be6258ff the catalogue statistics and entries seem to be corrupted on both stats.php?action=show and #admin/catalog.php?action=show_catalogs pages.

Reverting to the previous commit 29933ea28 resolves the issue.

**To reproduce**
Steps to reproduce the behaviour:
1. Upgrade to latest commit 8be6258ff
2. View Catalogue Statistics page stats.php?action=show
3. Or view Admin Show Catalogues page #admin/catalog.php?action=show_catalogs
4. See catalogue errors and no Last Verify, Last Add or Last Cleaned dates being reported

**Expected behavior**
Catalogue statistics to be displayed as before commit 8be6258ff

**Screenshots**
Catalogue statistics before update to commit 8be6258ff
![image](https://user-images.githubusercontent.com/3216809/107513903-d0fb4680-6ba0-11eb-9300-fdada9386c75.png)
Catalogue statistics after update to commit 8be6258ff
![image](https://user-images.githubusercontent.com/3216809/107515303-c0e46680-6ba2-11eb-8387-06a469c6aba0.png)


## Environment

* Ampache version: Ampache develop
* Web server + version: Apache 2.4.46, MySQL 8.0.22, PHP 7.4.15
* Server operating system: Fedora 33
* Client operating system: Fedora 33

<!-- Keep only the affected clients in the list below. Add the client application name and version to the right of the client type used. -->

**Client type:**

* Web

## Logs

No errors reported in logs



Discussion / hints:

Fix patch:
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index 952e70d711..274f90dcdd 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -456,7 +456,7 @@ public static function is_playlist_file($file)
      */
     public function get_info($object_id, $table_name = 'catalog')
     {
-        $info = parent::get_info($object_id, $table);
+        $info = parent::get_info($object_id, $table_name);
 
         $table      = 'catalog_' . $this->get_type();
         $sql        = "SELECT `id` FROM $table WHERE `catalog_id` = ?";


Test patch: