Bug 7941 : Fix version numbers in modules
[koha.git] / C4 / Members / Attributes.pm
index b373c94..e175915 100644 (file)
@@ -29,7 +29,7 @@ our ($csv, $AttributeTypes);
 
 BEGIN {
     # set the version for version checking
-    $VERSION = 3.01;
+    $VERSION = 3.07.00.049;
     @ISA = qw(Exporter);
     @EXPORT_OK = qw(GetBorrowerAttributes GetBorrowerAttributeValue CheckUniqueness SetBorrowerAttributes
                     DeleteBorrowerAttribute UpdateBorrowerAttribute
@@ -77,12 +77,11 @@ sub GetBorrowerAttributes {
                  FROM borrower_attributes
                  JOIN borrower_attribute_types USING (code)
                  LEFT JOIN authorised_values ON (category = authorised_value_category AND attribute = authorised_value)
-                 WHERE 1";
-    $query .= "\nAND borrowernumber = ?" if $borrowernumber;
+                 WHERE borrowernumber = ?";
     $query .= "\nAND opac_display = 1" if $opac_only;
     $query .= "\nORDER BY code, attribute";
     my $sth = $dbh->prepare_cached($query);
-    $sth->execute($borrowernumber ? $borrowernumber : ());
+    $sth->execute($borrowernumber);
     my @results = ();
     while (my $row = $sth->fetchrow_hashref()) {
         push @results, {