OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c99f65e
)
Model::Stories: fix warnings
author
hylom
<hylom@users.sourceforge.jp>
Fri, 31 Mar 2017 12:16:05 +0000
(21:16 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Fri, 31 Mar 2017 12:16:05 +0000
(21:16 +0900)
src/newslash_web/lib/Newslash/Model/Stories.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Model/Stories.pm
b/src/newslash_web/lib/Newslash/Model/Stories.pm
index
8147407
..
ad3fa21
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Model/Stories.pm
+++ b/
src/newslash_web/lib/Newslash/Model/Stories.pm
@@
-94,7
+94,9
@@
EOSQL
for my $story (@$rs) {
my $stoid = $story->{stoid};
- $story->{topics} = $topics->{$stoid};
+ if ($stoid) {
+ $story->{topics} = $topics->{$stoid};
+ }
$self->_generalize($story);
}