Changeset 6590 for branches/2.1/include


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

Bug 1733 fixed : merge from trunk.
Queries must use single quotes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/functions_comment.inc.php

    r6477 r6590  
    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.