]> git.mxchange.org Git - mailer.git/commitdiff
Better check if it is not empty (means set, too). This will speed-up the code again...
authorRoland Häder <roland@mxchange.org>
Mon, 29 Jul 2013 22:57:47 +0000 (22:57 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 29 Jul 2013 22:57:47 +0000 (22:57 +0000)
inc/libs/wernis_functions.php

index 48f3677c9c2a4c0e3efd7061f5c07f39b0dc0bd1..1e8dc198005711d9ccbc78bacba7f9bc86c64879 100644 (file)
@@ -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) . '";');