Fixed bug: not printing "OK" after registration
authorArtem Daniliants <artem@daniliants.com>
Tue, 9 Mar 2010 14:57:06 +0000 (16:57 +0200)
committerArtem Daniliants <artem@daniliants.com>
Tue, 9 Mar 2010 14:57:06 +0000 (16:57 +0200)
Server/application/controllers/api.php

index 33c8558..d8f8e6a 100644 (file)
@@ -23,7 +23,7 @@ class Api_Controller extends Controller{
        $xml = $this->get_xml();
        try {
           $user = new User_Model($xml->login, $xml->password, $xml->email);
-          return "OK";
+          echo "OK";
        }
         catch (Exception $e) {
             echo $e->getMessage() . "\n";