cvs: pearweb /include/Damblan Trackback.php

From: Date: Tue, 24 May 2005 14:54:18 +0000
Subject: cvs: pearweb /include/Damblan Trackback.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-32103@lists.php.net to get a copy of this message
toby Tue May 24 10:54:18 2005 EDT Modified files: /pearweb/include/Damblan Trackback.php Log: * Fixed saving of approved status. http://cvs.php.net/diff.php/pearweb/include/Damblan/Trackback.php?r1=1.10&r2=1.11&ty=u Index: pearweb/include/Damblan/Trackback.php diff -u pearweb/include/Damblan/Trackback.php:1.10 pearweb/include/Damblan/Trackback.php:1.11 --- pearweb/include/Damblan/Trackback.php:1.10 Mon May 23 17:09:27 2005 +++ pearweb/include/Damblan/Trackback.php Tue May 24 10:54:14 2005 @@ -162,7 +162,6 @@ $necessaryData = array('id', 'title', 'url', 'excerpt', 'blog_name', 'host'); $this->_checkData($necessaryData); $data = $this->_getDecodedData($necessaryData); -// $this->set('timestamp', time()); $approved = ($this->_approved) ? 'true' : 'false'; $sql = "INSERT INTO trackbacks (id, title, url, excerpt, blog_name, approved, timestamp, ip) VALUES ( ".$dbh->quoteSmart($this->get('id')).", @@ -170,7 +169,7 @@ ".$dbh->quoteSmart($this->get('url')).", ".$dbh->quoteSmart($this->get('excerpt')).", ".$dbh->quoteSmart($this->get('blog_name')).", - ".$dbh->quoteSmart($this->get('approved')).", + ".$dbh->quoteSmart($approved).", ".$dbh->quoteSmart($this->get('timestamp')).", ".$dbh->quoteSmart($this->get('host'))." )";

« previous php.pear.cvs (#32103) next »