From 5afabb1d089b072571779542781bc3c06b943e08 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 28 Feb 2013 17:27:02 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.services.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index c2f65952e..4d161f117 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -271,6 +271,10 @@ class wsServices extends cubeFlashGateway { $daoBook = new wsDAOBook($core->con); + if (is_int($book) || is_string($book)) { + $book = $daoBook->selectById($book); + } + if (is_null($book)) { return; } -- 2.39.5