Created
March 4, 2012 20:25
-
-
Save bryanhirsch/1974649 to your computer and use it in GitHub Desktop.
Prevent undefined index warning. Note: This section is rewritten in the dev branch of uuid. So this patch shouldn't be necessary after 7.x-1.0-alpha3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/uuid.tokens.inc b/uuid.tokens.inc | |
index d1ec58e..8042e3a 100644 | |
--- a/uuid.tokens.inc | |
+++ b/uuid.tokens.inc | |
@@ -92,5 +92,9 @@ function uuid_tokens($type, $tokens, array $data = array(), array $options = arr | |
break; | |
} | |
+ // Prevent undefined index warning. Note: This section is rewritten in the dev branch | |
+ // of uuid. So this patch shouldn't be necessary after 7.x-1.0-alpha3. | |
+ $replacements = (empty($replacements)) ? array() : $replacements; | |
+ | |
return $replacements; | |
-} | |
\ No newline at end of file | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment