From: erickson Date: Mon, 26 Apr 2010 12:58:49 +0000 (+0000) Subject: Patch from Jason Stephenson to silence 'isn't numeric' warnings in actor log X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9a887c4c9224f2ac452795cb7d27638c37ba4835;p=evergreen%2Fmasslnc.git Patch from Jason Stephenson to silence 'isn't numeric' warnings in actor log git-svn-id: svn://svn.open-ils.org/ILS/trunk@16300 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm index b387f8fc14..7ec012f286 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm @@ -276,7 +276,7 @@ sub build_org_tree { $org->ou_type( $org_typelist_hash->{$org->ou_type()}); } - next unless (defined($org->parent_ou)); + next if (!defined($org->parent_ou) || $org->parent_ou eq ""); my ($parent) = grep { $_->id == $org->parent_ou } @list; next unless $parent;