WBGP align Address's update method.
Remove unused variables and add some POD to AddressBook.
This commit is contained in:
parent
b9cf9c15f7
commit
3da2edb1eb
2 changed files with 12 additions and 13 deletions
|
|
@ -30,7 +30,6 @@ These subroutines are available from this package:
|
||||||
|
|
||||||
readonly session => my %session;
|
readonly session => my %session;
|
||||||
private properties => my %properties;
|
private properties => my %properties;
|
||||||
private error => my %error;
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -96,7 +95,6 @@ sub create {
|
||||||
# check to see if we're dealing with a registered user or just a visitor
|
# check to see if we're dealing with a registered user or just a visitor
|
||||||
if ($session->user->userId ne "1") {
|
if ($session->user->userId ne "1") {
|
||||||
# check to see if this user or his session already has an address book
|
# check to see if this user or his session already has an address book
|
||||||
my $addressBookId = "";
|
|
||||||
my @ids = $session->db->buildArray("select addressBookId from addressBook where userId=? or sessionId=?",[$session->user->userId, $session->getId]);
|
my @ids = $session->db->buildArray("select addressBookId from addressBook where userId=? or sessionId=?",[$session->user->userId, $session->getId]);
|
||||||
if (scalar(@ids) > 0) {
|
if (scalar(@ids) > 0) {
|
||||||
# how are we looking
|
# how are we looking
|
||||||
|
|
@ -151,7 +149,8 @@ Returns a duplicated hash reference of this object’s data.
|
||||||
|
|
||||||
=head3 property
|
=head3 property
|
||||||
|
|
||||||
Any field − returns the value of a field rather than the hash reference.
|
Any field − returns the value of a field rather than the hash reference. See the
|
||||||
|
C<update> method.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue