diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-03-04 05:15:41 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-03-04 05:15:41 +0000 |
commit | 753b69991603e6aa2c33d7a6e953141b85caf878 (patch) | |
tree | d6dff58f48a6639da95f3f8cd9648f0eba478468 /actions | |
parent | dcdf47cff2dc62996df042aa0e5d19948b265686 (diff) | |
parent | 7279554681da728deb74a87230de3a1021182f71 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'actions')
-rw-r--r-- | actions/newnotice.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index 9f44d2516..cbd04c58b 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -152,6 +152,11 @@ class NewnoticeAction extends Action } $replyto = $this->trimmed('inreplyto'); + #If an ID of 0 is wrongly passed here, it will cause a database error, + #so override it... + if ($replyto == 0) { + $replyto = 'false'; + } $notice = Notice::saveNew($user->id, $content, 'web', 1, ($replyto == 'false') ? null : $replyto); |