Mass move to root
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
class Musicbrainz_ArtistModel extends Model {
|
||||
|
||||
public function getId($name) {
|
||||
$artist_info = $this->db->getRows($this->db->q('SELECT * FROM musicbrainz.bh_artist WHERE name = \''. $name .'\''));
|
||||
if ($artist_info) {
|
||||
$ids = array();
|
||||
foreach ($artist_info as $item) {
|
||||
if ($item['id'] == $artist_info[0]['id']) {
|
||||
$ids[] = $item['credit_id'];
|
||||
}
|
||||
return $ids;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user