From: Dagfinn Ilmari Mannsåker Date: Sun, 13 Apr 2008 00:40:49 +0000 (+0000) Subject: Fix warning when dumping a schema with external class definitions. X-Git-Tag: 0.04999_05~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b9b7f8f4e020e03ced21eac6162e2a573cc654b1;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Fix warning when dumping a schema with external class definitions. --- diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 30e4c9b..867eae1 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -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;