From: Roland Häder Date: Mon, 29 Jul 2013 22:57:47 +0000 (+0000) Subject: Better check if it is not empty (means set, too). This will speed-up the code again... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80516903d4a4162a9c4dc48067c16d82e84d2502;p=mailer.git Better check if it is not empty (means set, too). This will speed-up the code again if no purpose is given --- diff --git a/inc/libs/wernis_functions.php b/inc/libs/wernis_functions.php index 48f3677c9c..1e8dc19800 100644 --- a/inc/libs/wernis_functions.php +++ b/inc/libs/wernis_functions.php @@ -96,7 +96,7 @@ function WERNIS_SEND_REQUEST ($scriptName, $requestData = array()) { $requestData['api_key'] = getWernisApiMd5(); // Is a purpose there? - if (isset($requestData['purpose'])) { + if (!empty($requestData['purpose'])) { // Eval the purpose eval('$purpose = "' . doFinalCompilation($requestData['purpose'], FALSE) . '";');