From 642aec67a32e39428bdcbe6cdadb89896667f8bd Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 17 Feb 2011 14:41:45 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.services.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index c6bc68b08..4b84a33f4 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -43,8 +43,7 @@ class wsServices extends cubeFlashGateway { // Recherche dans le cache $r = $this->con->select('SELECT * FROM book_short_url WHERE long_url=\'' . $this->con->escape($url) . '\' LIMIT 1'); if ($r->count() > 0) { - $this->xml->addChild('shortURL', $r->short_url); - return; + return $r->short_url; } // Si pas dans le cache, on le recherche $short_url = cubeURLShortener::bitLy($url, $bitLyUser, $bitLyKey); -- 2.39.5