From 746b62f828952ba629a88269e91bcd90b889a56a Mon Sep 17 00:00:00 2001 From: quix0r Date: Mon, 29 Jul 2013 22:57:47 +0000 Subject: [PATCH] Better check if it is not empty (means set, too). This will speed-up the code again if no purpose is given --- inc/libs/wernis_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) . '";'); -- 2.39.5