Author: sparky
Date: Sun Jul 25 15:28:15 2010
New Revision: 11704
Modified:
toys/rsget.pl/RSGet/Get.pm
Log:
- return error if link() list is empty
Modified: toys/rsget.pl/RSGet/Get.pm
==============================================================================
--- toys/rsget.pl/RSGet/Get.pm (original)
+++ toys/rsget.pl/RSGet/Get.pm Sun Jul 25 15:28:15 2010
@@ -419,6 +419,7 @@
sub link
{
my $self = shift;
+ return $self->error( "plugin found 0 links" ) unless @_;
my %links;
my $i = 0;
foreach ( @_ ) {
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit