Skip to content
This repository has been archived by the owner on Mar 3, 2018. It is now read-only.

Commit

Permalink
Etendue de la feature #104 pour l'edition dynamique
Browse files Browse the repository at this point in the history
  • Loading branch information
Taluu committed Jun 26, 2012
1 parent 52d37d8 commit c3d68c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ajax.php
Expand Up @@ -203,7 +203,7 @@ function ajax_edit_post($id)
*/
function ajax_submit_post($id)
{
$sql = 'SELECT p.u_id, p.p_nickname, p.p_map, t.f_id, t.t_first_p_id, t.t_type, t.t_description, t.t_id, t.t_status, f.f_status, u.u_auth
$sql = 'SELECT p.u_id, p.p_nickname, p.p_map, t.f_id, t.t_first_p_id, t.t_last_p_id, t.t_type, t.t_description, t.t_id, t.t_status, f.f_status, u.u_auth
FROM ' . SQL_PREFIX . 'posts p
LEFT JOIN ' . SQL_PREFIX . 'topics t
ON p.t_id = t.t_id
Expand Down Expand Up @@ -232,6 +232,7 @@ function ajax_submit_post($id)
// Soumission du message
Send::edit_post($id, $content, Fsb::$session->id(), array(
'update_topic' => ($data['t_first_p_id'] == $id) ? true : false,
'is_last' => $data['t_last_p_id'] == $id,
't_title' => $post_title,
't_type' => $data['t_type'],
't_description' => $data['t_description'],
Expand Down

0 comments on commit c3d68c2

Please sign in to comment.