summaryrefslogtreecommitdiff
path: root/lib/Pod/InputObjects.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Pod/InputObjects.pm')
-rw-r--r--lib/Pod/InputObjects.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Pod/InputObjects.pm b/lib/Pod/InputObjects.pm
index 2f89cb91f1..9029f8ccf3 100644
--- a/lib/Pod/InputObjects.pm
+++ b/lib/Pod/InputObjects.pm
@@ -522,7 +522,7 @@ sub _set_child2parent_links {
my ($self, @children) = @_;
## Make sure any sequences know who their parent is
for (@children) {
- next unless (ref || ref eq 'SCALAR');
+ next if (!ref || ref eq 'SCALAR');
if ($_->isa('Pod::InteriorSequence') or $_->can('nested')) {
$_->nested($self);
}