Index: ad_text.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ad/text/ad_text.module,v
retrieving revision 1.2.2.7.2.24.2.2
diff -u -r1.2.2.7.2.24.2.2 ad_text.module
--- ad_text.module	19 Nov 2008 17:20:41 -0000	1.2.2.7.2.24.2.2
+++ ad_text.module	3 Dec 2008 14:04:13 -0000
@@ -244,7 +244,7 @@
     form_set_error('adbody', t('Your text ad body is %cur characters but can not be more than %max characters.', array('%cur' => $body_len, '%max' => $body_max)));
   }
 
-  if (variable_get('ad_validate_url', 1) && (!valid_url($node->url, TRUE))) {
+  if (variable_get('ad_validate_url', 1) && !valid_url($form->url, TRUE)) {
     form_set_error('url', t('You must specify a valid %field.', array('%field' => t('Destination URL'))));
   }
 }
