X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_wernis.php;h=722d9bb252bb43c1c5a2af40adf334933e9fd123;hp=277c4581a00a2fcdb7e431353d0d832f879117df;hb=6586600d8020147192e5f28ca2a3a0153f774d3c;hpb=045fd39c83c676d115b730b97ab89750ced6fb1a diff --git a/inc/modules/admin/what-list_wernis.php b/inc/modules/admin/what-list_wernis.php index 277c4581a0..722d9bb252 100644 --- a/inc/modules/admin/what-list_wernis.php +++ b/inc/modules/admin/what-list_wernis.php @@ -32,13 +32,13 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) { +if ((!defined('__SECURITY')) || (!IS_ADMIN())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); // Check for entries $result = SQL_QUERY("SELECT id, userid, wernis_account, wernis_amount, wernis_timestamp, wernis_type, wernis_api_message, wernis_api_status FROM "._MYSQL_PREFIX."_user_wernis ORDER BY wernis_timestamp DESC, id DESC", @@ -57,6 +57,10 @@ if (SQL_NUMROWS($result) > 0) { $content['raw_type'] = strtolower($content['wernis_type']); $content['wernis_type'] = WERNIS_TRANSFER_STATUS($content['wernis_type']); + // Fix empty message and status + if (empty($content['wernis_api_message'])) $content['wernis_api_message'] = "---"; + if (empty($content['wernis_api_status'])) $content['wernis_api_status'] = "OK"; + // Append it and switch colors $OUT .= LOAD_TEMPLATE("admin_list_wernis_row", true, $content); $SW = 3 - $SW;