statickidz / php-google-translate-free

PHP class to use the Google Translator API for free.
GNU General Public License v3.0
271 stars 91 forks source link

Error while sending empty text #27

Closed rtwent closed 3 years ago

rtwent commented 4 years ago

GoogleTranslate line 126. foreach ($sentencesArray["sentences"] as $s) { $sentences .= isset($s["trans"]) ? $s["trans"] : ''; } We use it in circle and some of the data we want to translate are empty. So, code generate error

statickidz commented 3 years ago

Updated to 1.2.0, check again with that version