cosmetic
authorJeremy Laine <jeremy.laine@m4x.org>
Fri, 20 Apr 2007 11:39:00 +0000 (11:39 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Fri, 20 Apr 2007 11:39:00 +0000 (11:39 +0000)
include/diogenes/diogenes.database.table.inc.php

index 28ded25..7210fd8 100644 (file)
@@ -19,8 +19,8 @@
  */
 
 
-/** Class for handling operations on MySQL database tables. Upon construction, the class
- *  probes the table to read its structure.
+/** Class for handling operations on MySQL database tables. Upon construction,
+ *  the class probes the table to read its structure.
  *
  * @see DiogenesDatabase, DiogenesTableEditor
  */
@@ -55,8 +55,8 @@ class DiogenesDatabaseTable {
         break;
       case "timestamp":
       case "datetime":
-       $type = "timestamp";
-       break;
+        $type = "timestamp";
+        break;
       default:
         $type="text";
       }
@@ -64,6 +64,7 @@ class DiogenesDatabaseTable {
         "type" => $type, "value" => $value, "desc" => $name, "sum" => false,
         "key" => $key, "extra" => $extra, "edit" => true, "show" => true);
     }
+    mysql_free_result($res);
   }
 
 }