Fix warning when dumping a schema with external class definitions.
Dagfinn Ilmari Mannsåker [Sun, 13 Apr 2008 00:40:49 +0000 (00:40 +0000)]
lib/DBIx/Class/Schema/Loader/Base.pm

index 30e4c9b..867eae1 100644 (file)
@@ -284,7 +284,7 @@ sub _load_external {
     my $real_dump_path = $self->dump_directory
         ? Cwd::abs_path(
               File::Spec->catfile($self->dump_directory, $class_path)
-          )
+          ) || ''
         : '';
     my $real_inc_path = Cwd::abs_path($inc_path);
     return if $real_inc_path eq $real_dump_path;