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:
f169493
)
* Model::Messages: fix return value of create()
author
hylom
<hylom@users.sourceforge.jp>
Mon, 9 Oct 2017 14:25:56 +0000
(23:25 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Mon, 9 Oct 2017 14:25:56 +0000
(23:25 +0900)
src/newslash_web/lib/Newslash/Model/Messages.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Model/Messages.pm
b/src/newslash_web/lib/Newslash/Model/Messages.pm
index
5d62b54
..
f17afde
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Model/Messages.pm
+++ b/
src/newslash_web/lib/Newslash/Model/Messages.pm
@@
-107,7
+107,7
@@
sub create {
last;
}
}
- return if $mode == -1;
+ return
0
if $mode == -1;
# create message_drop
my $dbh = $self->start_transaction;