Ignore:
Timestamp:
Jul 3, 2010, 2:20:38 PM (14 years ago)
Author:
nikrou
Message:

Bug 1755 : Needs single quotes in queries official plugins

File:
1 edited

Legend:

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

    r6363 r6654  
    432432        $query='
    433433UPDATE '.OLD_PERMALINKS_TABLE.' SET last_hit=NOW(), hit=hit+1
    434   WHERE permalink="'.$permalinks[$i].'" AND cat_id='.$cat_id.'
     434  WHERE permalink=\''.$permalinks[$i].'\' AND cat_id='.$cat_id.'
    435435  LIMIT 1';
    436436        pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.