Changeset 6589 for trunk


Ignore:
Timestamp:
Jun 23, 2010, 8:11:00 PM (14 years ago)
Author:
nikrou
Message:

Fix bug 1733 : queries must use single quotes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r6437 r6589  
    157157  (author, author_id, content, date, validated, validation_date, image_id)
    158158  VALUES (
    159     "'.$comm['author'].'",
     159    \''.$comm['author'].'\',
    160160    '.$comm['author_id'].',
    161     "'.$comm['content'].'",
     161    \''.$comm['content'].'\',
    162162    NOW(),
    163     "'.($comment_action=='validate' ? 'true':'false').'",
     163    \''.($comment_action=='validate' ? 'true':'false').'\',
    164164    '.($comment_action=='validate' ? 'NOW()':'NULL').',
    165165    '.$comm['image_id'].'
     
    353353  $query = '
    354354UPDATE '.COMMENTS_TABLE.'
    355   SET validated = "true"
     355  SET validated = \'true\'
    356356    , validation_date = NOW()
    357357  WHERE id = '.$comment_id.'
Note: See TracChangeset for help on using the changeset viewer.