From: Roland Häder Date: Mon, 23 Feb 2009 19:22:32 +0000 (+0000) Subject: Fixed a lot typos, thanks to profi-concept X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=f18a3b60125c8c65861e3205da40447b227f89c9 Fixed a lot typos, thanks to profi-concept --- diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index 61d9be17fa..8d0ee5f467 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -322,10 +322,10 @@ function SQL_ESCAPE ($str, $secureString=true,$strip=true) { // SELECT query string from table, columns and so on... ;-) function SQL_RESULT_FROM_ARRAY ($table, $columns, $idRow, $id, $F, $L) { // Is columns an array? - if (!is_array($columns) { + if (!is_array($columns)) { // No array trigger_error(sprintf("columns is not array. %s!=array", gettype($columns))); - } + } // END - if // Prepare the SQL statement $SQL = "SELECT `".implode("`, `", $columns)."` FROM `{!_MYSQL_PREFIX!}_%s` WHERE ``='%s' LIMIT 1"; @@ -361,6 +361,7 @@ function SQL_ALTER_TABLE ($sql, $F, $L) { array($tableName, $columnName), $F, $L); // Do we have no entry on ADD or an entry on DROP? + // 123 4 4 3 3 4 4 32 23 4 4 3 3 4 4 321 if (((SQL_NUMROWS($result) == 0) && (eregi("ADD", $sql) > 0)) || ((SQL_NUMROWS($result) == 1) && (eregi("DROP", $sql) > 0))) { // Do the query $result = SQL_QUERY($sql, $F, $L, false); diff --git a/inc/libs/sponsor_functions.php b/inc/libs/sponsor_functions.php index ec1b82dcb4..024a0c9089 100644 --- a/inc/libs/sponsor_functions.php +++ b/inc/libs/sponsor_functions.php @@ -144,7 +144,7 @@ function SPONSOR_HANDLE_SPONSOR (&$POST, $NO_UPDATE=false, $MSGs=array(), $RET_S if ((!$NO_UPDATE) && (IS_ADMIN()) && ($GLOBALS['what'] == "add_sponsor")) { // Only allowed for admin $DATA['values'][] = "PENDING"; - } elsen{ + } else { // Guest area $DATA['values'][] = "UNCONFIRMED"; @@ -163,7 +163,7 @@ function SPONSOR_HANDLE_SPONSOR (&$POST, $NO_UPDATE=false, $MSGs=array(), $RET_S $SQL = "INSERT INTO `{!_MYSQL_PREFIX!}_sponsor_data` (".$KEYS.") VALUES ('".$VALUES."%s')"; // Generate message - $MSG = SPONSOR_GET_MESSAGE(ADMIN_SPONSOR_ADDED, "added", $MSGs); + $MSG = SPONSOR_GET_MESSAGE(getMessage('ADMIN_SPONSOR_ADDED'), "added", $MSGs); $ret = "added"; } elseif ((!$NO_UPDATE) && (IS_ADMIN())) { // Add all data as hidden data @@ -171,7 +171,7 @@ function SPONSOR_HANDLE_SPONSOR (&$POST, $NO_UPDATE=false, $MSGs=array(), $RET_S foreach ($POST as $k => $v) { // Do not add 'force' ! if ($k != "force") { - $OUT .= "\n"; + $OUT .= "\n"; } } define('__HIDDEN_DATA', $OUT); @@ -247,7 +247,7 @@ function SPONSOR_GET_MESSAGE ($msg, $pos, $array) { function IS_SPONSOR () { // Failed... $ret = false; - if ((isSessionVariableSet('sponsorid'))) && (isSessionVariableSet('sponsorpass')))) { + if ((isSessionVariableSet('sponsorid')) && (isSessionVariableSet('sponsorpass'))) { // Check cookies against database records... $result = SQL_QUERY_ESC("SELECT id FROM `{!_MYSQL_PREFIX!}_sponsor_data` WHERE id='%s' AND password='%s' AND `status`='CONFIRMED' LIMIT 1", diff --git a/inc/modules/admin/what-usage.php b/inc/modules/admin/what-usage.php index fa5f7747a0..1e40c5de2f 100644 --- a/inc/modules/admin/what-usage.php +++ b/inc/modules/admin/what-usage.php @@ -79,7 +79,7 @@ if (!empty($_GET['image'])) { ); } -if ((!empty($FQFN)) && (FILE_READABLE($FQFN) { +if ((!empty($FQFN)) && (FILE_READABLE($FQFN))) { // @TODO This code is double, see LOAD_TEMPLATE and LOAD_EMAIL_TEMPLATE in functions.php $tmpl_file = READ_FILE($FQFN); $tmpl_file = addslashes($tmpl_file); diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index 966f799f56..23fd43926c 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -41,7 +41,7 @@ if (!defined('__SECURITY')) { define('DEBUG_SQL', false); // Non-database functions -LOAD_INC_ONCE("inc/functions.php"); +require("inc/functions.php"); // Filter functions LOAD_INC_ONCE("inc/filters.php"); @@ -74,7 +74,7 @@ function __errorHandler ($errno, $errstr, $errfile, $errline) { mxchange_die("Error message written to debug.log. Please try to call the main page to continue."); } else { // No debug extension found, so regular output - debug_report_bug(); + debug_report_bug($msg); } }