Fixed a lot typos, thanks to profi-concept
[mailer.git] / inc / db / lib-mysql3.php
index 61d9be17fa1305e720669059823f380a1851389e..8d0ee5f467477c1b0700e9800f285203f611c026 100644 (file)
@@ -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?
 // 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)));
                // 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";
 
        // 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?
                        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);
                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);