PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_CDDB » Bug #9080

Use of wrong label causes notice warning.

Details

Submitted2006-10-18 13:30 UTC
Frombernard at collectorz dot com
Assignedsuperwormy
StatusClosed
PackageNet_CDDB
PHP Version4.4.1
OSAll
Roadmaps(Not assigned)

Comments

[2006-10-18 13:30 UTC] bernard at collectorz dot com

Description:
------------
When performing a freedb search, I get a lot of notice warnings on my development server due to the use of a wrong 'label' (is that the correct term?). The causing line is situated in the function searchDatabaseWithRawQuery in the file CDDB/Client.php. In this function $record['genre'] is being used, this should be $record['dgenre'].

Test script:
---------------
line 643 in Client.php is: $arr[] = new Net_CDDB_Disc($record['discid'], $record['dartist'], $record['dtitle'], $record['category'], $record['genre'], 0, array(), 0, 0, '');

should be:
$arr[] = new Net_CDDB_Disc($record['discid'], $record['dartist'], $record['dtitle'], $record['category'], $record['dgenre'], 0, array(), 0, 0, '');

[2007-01-08 13:28 UTC] kristof dot coomans at telenet dot be

Same PHP notices here...

Notice: Undefined index: genre in Net/CDDB/Client.php on line 643

[2007-02-25 18:43 UTC] superwormy at php dot net

Fixed in Release 0.3.0.