X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_wernis.php;h=722d9bb252bb43c1c5a2af40adf334933e9fd123;hp=ac0f53bc9a3421f78418ce9d3c73dc02206e46e5;hb=8d3d515e4f15d80d0c9bdab85b409e33a14188af;hpb=963e55ca1ea79e255f235e359cde9f7862191dc5 diff --git a/inc/modules/admin/what-list_wernis.php b/inc/modules/admin/what-list_wernis.php index ac0f53bc9a..722d9bb252 100644 --- a/inc/modules/admin/what-list_wernis.php +++ b/inc/modules/admin/what-list_wernis.php @@ -38,7 +38,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { } // 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;