[Bps-public-commit] r17669 - in Prophet/trunk: .
spang at bestpractical.com
spang at bestpractical.com
Fri Jan 9 07:49:20 EST 2009
Author: spang
Date: Fri Jan 9 07:49:20 2009
New Revision: 17669
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/CLI/Command/Search.pm
Log:
r53456 at loki: spang | 2009-01-09 14:17:13 +0200
quiet uninitialized warnings when sorting
Modified: Prophet/trunk/lib/Prophet/CLI/Command/Search.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Search.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Search.pm Fri Jan 9 07:49:20 2009
@@ -160,6 +160,8 @@
sub sort_by_prop {
my ($self, $prop, $records) = @_;
+ no warnings 'uninitialized'; # some records might not have this prop
+
return (sort { $a->prop($prop) cmp $b->prop($prop) } @{$records});
}
More information about the Bps-public-commit
mailing list