#1034130 by recidive: php notices
authorDave Cohen
Fri, 11 Feb 2011 16:53:48 +0000 (16:53 +0000)
committerDave Cohen
Fri, 11 Feb 2011 16:53:48 +0000 (16:53 +0000)
fb_canvas.module
fb_url_rewrite.inc

index fd84cb6..96174f6 100644 (file)
@@ -312,7 +312,7 @@ if (!function_exists('custom_url_rewrite_outbound')) {
 function fb_canvas_url_outbound_alter(&$path, &$options, $original_path) {
   // use $options['fb_url_alter'] = FALSE to suppress any alteration.
   if ((isset($options['external']) && $options['external']) ||
-      $options['fb_url_alter'] === FALSE) {
+      (isset($options['fb_url_alter']) && $options['fb_url_alter'] === FALSE)) {
     return;
   }
 
index a4c3062..0947d11 100644 (file)
@@ -106,7 +106,7 @@ if (!function_exists('custom_url_rewrite_outbound')) {
  */
 function fb_url_outbound_alter(&$path, &$options, $original_path) {
   if ((isset($options['external']) && $options['external']) ||
-      $options['fb_url_alter'] === FALSE) {
+      (isset($options['fb_url_alter']) && $options['fb_url_alter'] === FALSE)) {
     return;
   }