]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_sql.cpp
Updated copyrights in headers etc using perl inplace edit
[user/henk/code/inspircd.git] / src / modules / extra / m_sql.cpp
index 5d79d7596fcf6b7b378f96eb38bb541c11d4ec9a..de96c5a9309898e66d453cfa792fc24b0c18ec35 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2004 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
@@ -122,13 +122,10 @@ class SQLConnection
                                {
                                        while (field_count < mysql_field_count(&connection))
                                        {
-                                               if ((fields[field_count]) && (fields[field_count].name) && (row[field_count]))
-                                               {
-                                                       std::string a = (fields[field_count].name ? fields[field_count].name : "");
-                                                       std::string b = (row[field_count] ? row[field_count] : "");
-                                                       thisrow[a] = b;
-                                                       field_count++;
-                                               }
+                                               std::string a = (fields[field_count].name ? fields[field_count].name : "");
+                                               std::string b = (row[field_count] ? row[field_count] : "");
+                                               thisrow[a] = b;
+                                               field_count++;
                                        }
                                        return thisrow;
                                }