Fixed empty API message/status in primera and wernis extensions
[mailer.git] / inc / modules / admin / what-list_wernis.php
index 844813b17c2f9963ebb5dc9e42ef122a2fa46ac2..722d9bb252bb43c1c5a2af40adf334933e9fd123 100644 (file)
@@ -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;