projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00046c7
)
GoogleTranslate.php
author
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:07:22 +0000
(21:07 +0800)
committer
Chris
<chris@roojs.com>
Wed, 2 Apr 2014 13:07:22 +0000
(21:07 +0800)
GoogleTranslate.php
patch
|
blob
|
history
diff --git
a/GoogleTranslate.php
b/GoogleTranslate.php
index
0dcdc8d
..
cbd6755
100644
(file)
--- a/
GoogleTranslate.php
+++ b/
GoogleTranslate.php
@@
-31,7
+31,9
@@
class Pman_Core_GoogleTranslate extends Pman
if (empty($pc['googlekey'])) {
$this->jerr("Google API Key not configured");
}
-
+ if (!strlen(trim($_REQUEST['text']))) {
+ $this->jok("");
+ }
$param = array(
'key' => $pc['googlekey'],
'q' => rawurlencode($_REQUEST['text']),