appdb/include incl.php
WineHQ
wineowner at wine.codeweavers.com
Mon Jul 23 20:35:30 CDT 2007
ChangeSet ID: 31270
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/07/23 20:35:30
Modified files:
include : incl.php
Log message:
Chris Morgan <cmorgan at alum.wpi.edu>
Switching from timestamp to datetime means we have to specify the time we want stored in the
field. In any case we want to be explicit so specify 'NOW()' for the timestamp/datetime field.
Patch: http://cvs.winehq.org/patch.py?id=31270
Old revision New revision Changes Path
1.44 1.45 +2 -2 appdb/include/incl.php
Index: appdb/include/incl.php
diff -u -p appdb/include/incl.php:1.44 appdb/include/incl.php:1.45
--- appdb/include/incl.php:1.44 24 Jul 2007 1:35:30 -0000
+++ appdb/include/incl.php 24 Jul 2007 1:35:30 -0000
@@ -264,8 +264,8 @@ function addmsg($text, $color = "black")
if($color)
$text = "<font color='$color'> $text </font>\n";
- $sQuery = "INSERT INTO sessionMessages VALUES (null, null, '?', '?')";
- if (!query_parameters($sQuery, session_id(), $text))
+ $sQuery = "INSERT INTO sessionMessages VALUES (null, ?, '?', '?')";
+ if (!query_parameters($sQuery, "NOW()", session_id(), $text))
{
echo "An error has occurred in addmsg()";
echo $text;
More information about the wine-cvs
mailing list