Improve speed of wish related function
This commit is contained in:
@@ -230,14 +230,12 @@ class NetBiblio extends WebService
|
||||
|
||||
public function AddWish($bookNr)
|
||||
{
|
||||
$id = AudioBook::findIdByCode(intval($bookNr));
|
||||
$this->data[] = $this->getUser()->addWish($id);
|
||||
$this->data[] = $this->getUser()->addWish($bookNr);
|
||||
}
|
||||
|
||||
public function DeleteWish($bookNr)
|
||||
{
|
||||
$id = AudioBook::findIdByCode(intval($bookNr));
|
||||
$this->getUser()->deleteWish($id);
|
||||
$this->getUser()->deleteWish($bookNr);
|
||||
}
|
||||
|
||||
public function FindBooks($codes)
|
||||
|
||||
Reference in New Issue
Block a user