X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fforced_functions.php;h=b45c69edaeae0a58abeab8b9419f7b899c0fca1f;hb=20741b93fd58620af677a7f1039ffd16ea6ec689;hp=cd2aba8ba11613ea587c8ac7e292ffc5f75b50c5;hpb=a13cee9b7e7f0e4b40969c8957af72cb46bdb3a3;p=mailer.git diff --git a/inc/libs/forced_functions.php b/inc/libs/forced_functions.php index cd2aba8ba1..b45c69edae 100644 --- a/inc/libs/forced_functions.php +++ b/inc/libs/forced_functions.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -54,8 +54,12 @@ function doTemplateForcedAdTypeSelectionBox ($templateName, $clear = false, $def // Translate the status IN/OUT function translateForcedAdType ($status) { - // Is the status empty? - if (empty($status)) { + // Is the status null or empty? + if (is_null($status)) { + // Is NULL + $status = 'NULL'; + } elseif (empty($status)) { + // Is empty (string) $status = 'EMPTY'; } // END - if @@ -77,7 +81,7 @@ function translateForcedAdType ($status) { // "Getter" for an array of data from all Forced-PopUps function getForcedPopupDataByEarningArray ($content) { - die(__FUNCTION__ . ':content=
'.print_r($content,true).'
'); + debug_report_bug(__FUNCTION__, __LINE__, 'content=' . print_r($content, true)); } // [EOF]