[Koha-patches] [PATCH] clean up redundant test

Galen Charlton galen.charlton at liblime.com
Thu May 21 16:00:44 CEST 2009


Credit to Joe Atzberger for cathing this.
---
 C4/Acquisition.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm
index 5fc05ce..d8a6c95 100644
--- a/C4/Acquisition.pm
+++ b/C4/Acquisition.pm
@@ -731,7 +731,7 @@ sub SearchOrder {
           . ") or biblioitems.isbn=? OR (aqorders.ordernumber=? AND aqorders.biblionumber=?)) ";
     }
     
-    if( $biblionumber and $biblionumber ne "" ){
+    if ( $biblionumber ) {
         $query .= "AND biblio.biblionumber = ? ";
         push (@searchterms, $biblionumber);
     }
-- 
1.5.6.5




More information about the Koha-patches mailing list