[pLog-svn] r2542 - plog/branches/plog-1.0.2/class/action/admin
jondaley at devel.plogworld.net
jondaley at devel.plogworld.net
Wed Nov 9 11:33:05 GMT 2005
Author: jondaley
Date: 2005-11-09 11:33:04 +0000 (Wed, 09 Nov 2005)
New Revision: 2542
Modified:
plog/branches/plog-1.0.2/class/action/admin/adminsendtrackbacksaction.class.php
Log:
I don't normally use trackbacks, but I get an error trying to send a trackback to lifetype's announcement page. My off-the-wall guess is that this has something to do with Mark's new trackback stuff that Oscar made him remove until 1.1?
Modified: plog/branches/plog-1.0.2/class/action/admin/adminsendtrackbacksaction.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/action/admin/adminsendtrackbacksaction.class.php 2005-11-07 13:32:47 UTC (rev 2541)
+++ plog/branches/plog-1.0.2/class/action/admin/adminsendtrackbacksaction.class.php 2005-11-09 11:33:04 UTC (rev 2542)
@@ -76,7 +76,7 @@
$postLinks = Array();
$trackbackLinks = Array();
- if ( count($this->_postLinks) != 0 ) {
+ if ( $this->_postLinks && count($this->_postLinks) != 0 ) {
$autoDiscoverResults = $tbClient->sendTrackbacks( $this->_postLinks, $post, $this->_blogInfo);
foreach( $autoDiscoverResults as $result ) {
@@ -95,7 +95,7 @@
}
}
- if ( count($this->_trackbackLinks) != 0 ) {
+ if ( $this->_trackbackLinks && count($this->_trackbackLinks) != 0 ) {
$directPingResults = $tbClient->sendDirectTrackbacks( $this->_trackbackLinks, $post, $this->_blogInfo);
foreach( $directPingResults as $result ) {
@@ -110,7 +110,7 @@
}
}
}
-
+
// if there were errors, we let the user try again
if( $errors ) {
if( $message != "" )
More information about the pLog-svn
mailing list