From: Roland Häder Date: Wed, 26 Nov 2008 01:56:37 +0000 (+0000) Subject: Fixed empty API message/status in primera and wernis extensions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d3d515e4f15d80d0c9bdab85b409e33a14188af;p=mailer.git Fixed empty API message/status in primera and wernis extensions --- diff --git a/inc/modules/admin/what-list_primera.php b/inc/modules/admin/what-list_primera.php index f500925d52..6bd4c379c5 100644 --- a/inc/modules/admin/what-list_primera.php +++ b/inc/modules/admin/what-list_primera.php @@ -55,12 +55,16 @@ if (SQL_NUMROWS($result) > 0) { $content['primera_amount'] = TRANSLATE_COMMA($content['primera_amount']); $content['primera_timestamp'] = MAKE_DATETIME($content['primera_timestamp'], "2"); $content['raw_type'] = strtolower($content['primera_type']); - $content['primera_type'] = PRIMERA_TRANSFER_STATUS($content['primera_type']); + $content['primera_type'] = PRIMERA_TRANSFER_STATUS($content['primera_type']); + + // Fix empty message and status + if (empty($content['primera_api_message'])) $content['primera_api_message'] = "---"; + if (empty($content['primera_api_status'])) $content['primera_api_status'] = "OK"; // Append it and switch colors $OUT .= LOAD_TEMPLATE("admin_list_primera_row", true, $content); $SW = 3 - $SW; - } + } // END - while // Load main template LOAD_TEMPLATE("admin_list_primera_main", false, $OUT); diff --git a/inc/modules/admin/what-list_wernis.php b/inc/modules/admin/what-list_wernis.php index 844813b17c..722d9bb252 100644 --- a/inc/modules/admin/what-list_wernis.php +++ b/inc/modules/admin/what-list_wernis.php @@ -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;