From: Chris Date: Wed, 2 Apr 2014 13:09:08 +0000 (+0800) Subject: GoogleTranslate.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=56c2a2c1906a401543c9469da98ad233c2f021d7 GoogleTranslate.php --- diff --git a/GoogleTranslate.php b/GoogleTranslate.php index cbd6755f..4a47f3ff 100644 --- a/GoogleTranslate.php +++ b/GoogleTranslate.php @@ -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'],