]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 17 Feb 2011 14:41:45 +0000 (14:41 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Thu, 17 Feb 2011 14:41:45 +0000 (14:41 +0000)
inc/ws/Controlleur/class.ws.services.php

index c6bc68b08f114be7382c2776c0eaf502d33059bd..4b84a33f4f034c3859e077f7f1df5d02a790972e 100644 (file)
@@ -43,8 +43,7 @@ class wsServices extends cubeFlashGateway {
                // Recherche dans le cache\r
                $r = $this->con->select('SELECT * FROM book_short_url WHERE long_url=\'' . $this->con->escape($url) . '\' LIMIT 1');\r
                if ($r->count() > 0) {\r
-                       $this->xml->addChild('shortURL', $r->short_url);\r
-                       return;\r
+                       return $r->short_url;\r
                }\r
                // Si pas dans le cache, on le recherche\r
                $short_url = cubeURLShortener::bitLy($url, $bitLyUser, $bitLyKey);\r