Tadashi Okoshi
slash****@users*****
2006年 6月 6日 (火) 11:04:39 JST
Index: affelio/lib/Affelio/Managing/NewsAggregator.pm
diff -u affelio/lib/Affelio/Managing/NewsAggregator.pm:1.22 affelio/lib/Affelio/Managing/NewsAggregator.pm:1.23
--- affelio/lib/Affelio/Managing/NewsAggregator.pm:1.22 Tue Jun 6 11:02:33 2006
+++ affelio/lib/Affelio/Managing/NewsAggregator.pm Tue Jun 6 11:04:39 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: NewsAggregator.pm,v 1.22 2006/06/06 02:02:33 slash5234 Exp $
+# $Id: NewsAggregator.pm,v 1.23 2006/06/06 02:04:39 slash5234 Exp $
package Affelio::Managing::NewsAggregator;
{
@@ -83,6 +83,10 @@
my $type = shift; #arg(2) type
debug_print("NewsAggregator::retrieve_news: start.");
+ if($type eq ""){
+ $type = "Personal";
+ }
+
##############################
#retrieve all friend records from DB
my $query = "SELECT datetime, af_id, nickname, app_install_name, title, description, creator, URL FROM $af->{site__dbtbl_prefix}_CORE_nghr_news order by datetime desc WHERE af_type='$type'";
@@ -110,6 +114,9 @@
my $type = shift; #arg(3) type
debug_print("NewsAggregator::retrieve_ajax_news: start.");
+ if($type eq ""){
+ $type = "Personal";
+ }
##############################
#retrieve all friend records from DB