From: <sy...@us...> - 2010-04-13 19:29:57
|
Revision: 26614 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=26614&view=rev Author: sylvieg Date: 2010-04-13 19:29:51 +0000 (Tue, 13 Apr 2010) Log Message: ----------- [FIX]tracker: attachment field for anonymous (confusiopn between is null and ='') Modified Paths: -------------- branches/5.x/lib/trackers/trackerlib.php Modified: branches/5.x/lib/trackers/trackerlib.php =================================================================== --- branches/5.x/lib/trackers/trackerlib.php 2010-04-13 18:08:47 UTC (rev 26613) +++ branches/5.x/lib/trackers/trackerlib.php 2010-04-13 19:29:51 UTC (rev 26614) @@ -192,8 +192,8 @@ $query = "insert into `tiki_tracker_item_attachments`(`itemId`,`filename`,`filesize`,`filetype`,`data`,`created`,`hits`,`user`,"; $query.= "`comment`,`path`,`version`,`longdesc`) values(?,?,?,?,?,?,?,?,?,?,?,?)"; $result = $this->query($query,array((int) $itemId,$filename,$size,$type,$data,(int) $now,0,$user,$comment,$fhash,$version,$longdesc)); - $query = 'select `attId` from `tiki_tracker_item_attachments` where `itemId`=? and `user`=? and `created`=? and `filename`=?'; - $attId = $this->getOne($query, array($itemId, $user, $now, $filename)); + $query = 'select `attId` from `tiki_tracker_item_attachments` where `itemId`=? and `created`=? and `filename`=?'; + $attId = $this->getOne($query, array($itemId, $now, $filename)); } elseif (empty($filename)) { $query = "update `tiki_tracker_item_attachments` set `comment`=?,`user`=?,`version`=?,`longdesc`=? where `attId`=?"; $result = $this->query($query,array($comment, $user, $version, $longdesc, $attId)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |