From 80516903d4a4162a9c4dc48067c16d82e84d2502 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= 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