-
-
Save vti/e0da0fd2b6128a296f97 to your computer and use it in GitHub Desktop.
This file contains 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/lib/Mojo/Base.pm b/lib/Mojo/Base.pm | |
index 47302aa..2969bb7 100644 | |
--- a/lib/Mojo/Base.pm | |
+++ b/lib/Mojo/Base.pm | |
@@ -41,7 +41,7 @@ sub attr { | |
no strict 'refs'; | |
# Create attributes | |
- $attrs = ref $attrs eq 'ARRAY' ? $attrs : [$attrs]; | |
+ $attrs = [$attrs] unless ref $attrs eq 'ARRAY'; | |
my $ws = ' '; | |
for my $attr (@$attrs) { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment