Index: pingback.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pingback/pingback.module,v
retrieving revision 1.3
diff -u -p -r1.3 pingback.module
--- pingback.module	15 Mar 2008 00:30:32 -0000	1.3
+++ pingback.module	13 Aug 2008 20:00:22 -0000
@@ -335,14 +335,14 @@ function pingback_discover($target) {
   //#1: send a HEAD to check for X-Pingback header
   $r = drupal_http_request($target, array(), 'HEAD');
   //dpm($r);
-  if (!$r->error) {
+  if (empty($r->error)) {
     if (is_array($r->headers) && isset($r->headers['X-Pingback'])) {
       $server = $r->headers['X-Pingback'];
     }
     else {
       //#2: search for <link rel="pingback" href="(server)" /> tags
       $get = drupal_http_request($target);
-      if (!$get->error) {
+      if (empty($get->error)) {
         //dpm($get->data);
         //this regexp is the one provided in the spec
         if (preg_match('#<link rel="pingback" href="([^"]+)" ?/?>#', $get->data, $matches)) {
@@ -422,7 +422,7 @@ function pingback_send_by_nid($nid, $mes
   if (isset($node->pingback_sent)) {
     //$urls = array_diff(_pingback_extract_urls($prepared->body), $node->pingback_sent);
   }
-  $succesful = array();
+  $successful = array();
   foreach ($urls as $url) {
     //dpm("Sending to " . check_plain($url));
     if (pingback_send($node->nid, $url)) {
