From: Tim Starling Date: Wed, 1 Mar 2006 11:09:18 +0000 (+0000) Subject: Fixed bug 2861. cl_timestamp isn't used for anything, but it's got no default so... X-Git-Tag: 1.6.0~249 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=6aebe1799ef268f5bc1ea0c90c359efb039c3a55;p=lhc%2Fweb%2Fwiklou.git Fixed bug 2861. cl_timestamp isn't used for anything, but it's got no default so strictly speaking we have to insert something there. Inserting 0 which the MySQL manual says is valid for timestamp columns. This is easier than adding yet another SQL patch file to define a default. --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 419d3d60f1..cac96adced 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -320,7 +320,8 @@ class LinksUpdate { $arr[] = array( 'cl_from' => $this->mId, 'cl_to' => $name, - 'cl_sortkey' => $sortkey + 'cl_sortkey' => $sortkey, + 'cl_timestamp' => 0 ); } return $arr;