GoogleTranslate.php
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 13:09:08 +0000 (21:09 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 13:09:08 +0000 (21:09 +0800)
GoogleTranslate.php

index cbd6755..4a47f3f 100644 (file)
@@ -32,7 +32,7 @@ class Pman_Core_GoogleTranslate extends Pman
             $this->jerr("Google API Key not configured");
         }
         if (!strlen(trim($_REQUEST['text']))) {
-            $this->jok("");
+            $this->jok(array("translatedText" =>""));
         }
         $param = array(
             'key' => $pc['googlekey'],