From: <mo...@us...> - 2004-11-04 03:46:26
|
Update of /cvsroot/tikiwiki/tiki/lib/polls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23010/lib/polls Modified Files: Tag: BRANCH-1-9 polllib_shared.php Log Message: bugfixes Index: polllib_shared.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/polls/polllib_shared.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -d -r1.1.2.2 -r1.1.2.3 --- polllib_shared.php 3 Nov 2004 22:37:05 -0000 1.1.2.2 +++ polllib_shared.php 4 Nov 2004 03:46:13 -0000 1.1.2.3 @@ -80,6 +80,7 @@ $res = $result->fetchRow(); $poll['info'] = $this->get_poll($res['pollId']); $poll['options'] = $this->list_poll_options($res['pollId']); + $poll['title'] = $res['title']; return $poll; } return false; @@ -129,11 +130,11 @@ return true; } - function poll_categorize($catObjectId,$pollId) { + function poll_categorize($catObjectId,$pollId,$title='') { $query = "delete from `tiki_poll_objects` where `catObjectId`=? and `pollId`=?"; $result = $this->query($query,array((int) $catObjectId,(int) $pollId),-1,-1,false); - $query = "insert into `tiki_poll_objects`(`catObjectId`,`pollId`) values(?,?)"; - $result = $this->query($query,array((int) $catObjectId,(int) $pollId)); + $query = "insert into `tiki_poll_objects`(`catObjectId`,`pollId`,`title`) values(?,?,?)"; + $result = $this->query($query,array((int) $catObjectId,(int) $pollId, $title)); } } |