Tadashi Okoshi
slash****@users*****
2006年 6月 13日 (火) 17:04:36 JST
Index: affelio/lib/Affelio/SNS/FriendManager.pm
diff -u affelio/lib/Affelio/SNS/FriendManager.pm:1.26 affelio/lib/Affelio/SNS/FriendManager.pm:1.27
--- affelio/lib/Affelio/SNS/FriendManager.pm:1.26 Tue Jun 13 14:20:25 2006
+++ affelio/lib/Affelio/SNS/FriendManager.pm Tue Jun 13 17:04:36 2006
@@ -14,7 +14,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-# $Id: FriendManager.pm,v 1.26 2006/06/13 05:20:25 slash5234 Exp $
+# $Id: FriendManager.pm,v 1.27 2006/06/13 08:04:36 slash5234 Exp $
package Affelio::SNS::FriendManager;
{
@@ -61,7 +61,7 @@
if($type ne ""){
$WHERE_BLOOCK = " WHERE af_type = '$type' ";
}else{
- $WHERE_BLOOCK = "WHERE af_type = 'Personal' or af_type = 'Standalone' ";
+ $WHERE_BLOOCK = "WHERE af_type = 'Personal' or af_type = 'Standalone' or af_type='' or af_type IS NULL";
}
##############################
@@ -614,9 +614,9 @@
}else{
#In case type="", we assume type="Personal or Standalone"
if($where_block ne ""){
- $where_block = "$where_block or af_type = 'Personal' or af_type = 'Standalone' ";
+ $where_block = "$where_block or af_type = 'Personal' or af_type = 'Standalone' or af_type = '' or af_type IS NULL ";
}else{
- $where_block = "WHERE af_type = 'Personal' or af_type = 'Standalone' ";
+ $where_block = "WHERE af_type = 'Personal' or af_type = 'Standalone' or af_type= '' or af_type IS NULL ";
}
}