Skip to content

Commit 361e013

Browse files
authored
Update script.class.php
1 parent 730e147 commit 361e013

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/class/script.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function execute($_options = null) {
200200
if ($this->getConfiguration('doNotReportHttpError') == 1) {
201201
$request_http->setNoReportError(true);
202202
}
203-
if ($this->getType() == 'action') {
203+
if ($this->getType() == 'action' && trim($request) != '') {
204204
$request_http->setPost($request);
205205
}
206206
if (isset($_options['speedAndNoErrorReport']) && $_options['speedAndNoErrorReport'] == true) {
@@ -264,7 +264,7 @@ public function execute($_options = null) {
264264
if ($this->getConfiguration('xmlNoSslCheck') == 1) {
265265
$request_http->setNoSslCheck(true);
266266
}
267-
if ($this->getType() == 'action') {
267+
if ($this->getType() == 'action' && trim($request) != '') {
268268
$request_http->setPost($request);
269269
}
270270
$xml = trim($request_http->exec($this->getConfiguration('xmlTimeout', 2), $this->getConfiguration('maxXmlRetry', 3)));
@@ -391,7 +391,7 @@ public function execute($_options = null) {
391391
if ($this->getConfiguration('htmlNoSslCheck') == 1) {
392392
$request_http->setNoSslCheck(true);
393393
}
394-
if ($this->getType() == 'action') {
394+
if ($this->getType() == 'action' && trim($request) != '') {
395395
$request_http->setPost($request);
396396
}
397397
$html = $request_http->exec($this->getConfiguration('htmlTimeout', 2), $this->getConfiguration('maxHtmlRetry', 3));

0 commit comments

Comments
 (0)