diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-03-03 05:53:38 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-03-03 05:53:38 +0100 |
commit | 5052e27db22d41c5d01c65d03ad515041def63a3 (patch) | |
tree | ab44e55c5c2692f79afaf7d26d23d0f86f8d4581 /system/libraries/Trackback.php | |
parent | 7b5b0e2d4000fadabcdad894538e42c23ebb9ecd (diff) |
changing casing on some booleans
Diffstat (limited to 'system/libraries/Trackback.php')
-rw-r--r-- | system/libraries/Trackback.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/system/libraries/Trackback.php b/system/libraries/Trackback.php index 9b1737c5f..a604c0b2d 100644 --- a/system/libraries/Trackback.php +++ b/system/libraries/Trackback.php @@ -128,7 +128,7 @@ class CI_Trackback { * Receive Trackback Data * * This function simply validates the incoming TB data. - * It returns false on failure and true on success. + * It returns FALSE on failure and TRUE on success. * If the data is valid it is set to the $this->data array * so that it can be inserted into a database. * @@ -221,7 +221,7 @@ class CI_Trackback { * Process Trackback * * Opens a socket connection and passes the data to - * the server. Returns true on success, false on failure + * the server. Returns TRUE on success, FALSE on failure * * @access public * @param string @@ -267,6 +267,7 @@ class CI_Trackback { } @fclose($fp); + if (stristr($this->response, '<error>0</error>') === FALSE) { $message = 'An unknown error was encountered'; @@ -383,7 +384,7 @@ class CI_Trackback { if ( ! preg_match ("/^([0-9]+)$/", $tb_id)) { - return false; + return FALSE; } else { @@ -436,7 +437,7 @@ class CI_Trackback { { return $str; } - + $str = preg_replace("/\s+/", ' ', str_replace(array("\r\n", "\r", "\n"), ' ', $str)); if (strlen($str) <= $n) |