X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fdiogenes%2Fdiogenes.database.table.inc.php;fp=include%2Fdiogenes%2Fdiogenes.database.table.inc.php;h=7210fd8c4785436200bee8d6064ae800fdba1e3e;hb=22e6ed21411ae161f270237157f67e0c4e6c6ef4;hp=28ded25e0fdd71c666e9393bffb2b66364da88d7;hpb=54022f879663945c990d66ea85b5aa4a9ef45231;p=diogenes.git diff --git a/include/diogenes/diogenes.database.table.inc.php b/include/diogenes/diogenes.database.table.inc.php index 28ded25..7210fd8 100644 --- a/include/diogenes/diogenes.database.table.inc.php +++ b/include/diogenes/diogenes.database.table.inc.php @@ -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); } }