[open-ils-commits] [GIT] Evergreen ILS branch master updated. 21b72b3848b27a2d71c88b8833a365cec4fb7325

Evergreen Git git at git.evergreen-ils.org
Wed Mar 21 22:13:01 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  21b72b3848b27a2d71c88b8833a365cec4fb7325 (commit)
      from  96c404dd1ebaae5974669394c6a5e369f1d1ecb3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 21b72b3848b27a2d71c88b8833a365cec4fb7325
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Wed Mar 21 10:03:18 2012 -0400

    TPAC: suppress warning about splice() when the array in question is too short
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Dan Scott <dan at coffeecode.net>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index ecf8ef0..5c13a83 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -657,7 +657,7 @@ sub staff_save_search {
 
     unshift @$list, $query unless $already{$query};
 
-    splice @$list, $sss_size;
+    splice @$list, $sss_size if scalar @$list > $sss_size;
 
     $cache_key = $U->simplereq(
         "open-ils.actor",

-----------------------------------------------------------------------

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list