From: Roland Häder Date: Mon, 16 Mar 2009 20:05:15 +0000 (+0000) Subject: Even more rewritten X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=116747e4dba29e9e2e4daa82c45d8bbb302e9378;p=mailer.git Even more rewritten --- diff --git a/inc/autopurge/purge-general.php b/inc/autopurge/purge-general.php index 0b9cc48045..acaacc33ff 100644 --- a/inc/autopurge/purge-general.php +++ b/inc/autopurge/purge-general.php @@ -44,7 +44,7 @@ if (!defined('__SECURITY')) { } // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } diff --git a/inc/autopurge/purge-inact.php b/inc/autopurge/purge-inact.php index a7a978dcc6..9d630b2058 100644 --- a/inc/autopurge/purge-inact.php +++ b/inc/autopurge/purge-inact.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/autopurge/purge-mails.php b/inc/autopurge/purge-mails.php index 61d2f2babc..05c3242fb4 100644 --- a/inc/autopurge/purge-mails.php +++ b/inc/autopurge/purge-mails.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/autopurge/purge-tsks.php b/inc/autopurge/purge-tsks.php index 5a19d67782..1903319a0f 100644 --- a/inc/autopurge/purge-tsks.php +++ b/inc/autopurge/purge-tsks.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/autopurge/purge-unconfirmed.php b/inc/autopurge/purge-unconfirmed.php index 0c6861c389..152689ba98 100644 --- a/inc/autopurge/purge-unconfirmed.php +++ b/inc/autopurge/purge-unconfirmed.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/doubler_send.php b/inc/doubler_send.php index bcc9af7c82..b9f06e0191 100644 --- a/inc/doubler_send.php +++ b/inc/doubler_send.php @@ -77,7 +77,7 @@ ORDER BY d.timemark LIMIT %d", array($DOUBLER_POINTS, $min, getConfig('doubler_max_sent')), __FILE__, __LINE__); // Do we have entries found? -if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != "Y"))) { +if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) { // Switch to matching SQL resource $result_load = $result_main; if ((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) $result_load = $result_total; diff --git a/inc/functions.php b/inc/functions.php index 025f936e7d..a04e852dad 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1101,7 +1101,7 @@ function array_pk_sort (&$array, $a_sort, $primary_key = 0, $order = -1, $nums = function ADD_SELECTION ($type, $DEFAULT, $prefix="", $id="0") { $OUT = ''; - if ($type == "yn") { + if ($type == 'yn') { // This is a yes/no selection only! if ($id > 0) $prefix .= "[".$id."]"; $OUT .= " \n"; for ($idx = 0; $idx <= 10; $idx++) { $OUT .= " \n"; } diff --git a/inc/libs/rallye_functions.php b/inc/libs/rallye_functions.php index 32a205e40c..0a11d0f1a4 100644 --- a/inc/libs/rallye_functions.php +++ b/inc/libs/rallye_functions.php @@ -700,7 +700,7 @@ function RALLYE_TEMPLATE_SELECTION ($name="template", $default="") { \n"; foreach ($ral as $rallye) { $OUT .= "