Trac

Changeset 17659


Ignore:
Timestamp:
05/29/13 22:27:05 (15 months ago)
Author:
Alexander Trofimov
Message:

HTB23157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/7.1/administration/categories.php

    r17069 r17659  
    4444                if (bx_get('action_disable') !== false) 
    4545                    $oDb->query("UPDATE `sys_categories` SET `Status` = 'passive' WHERE 
    46                         `Category` = '$sCategory' AND `ID` = $sId AND `Type` = '$sType'"); 
     46                        `Category` = '$sCategory' AND `ID` = " . (int)$sId . " AND `Type` = '$sType'"); 
    4747                else if(bx_get('action_delete') !== false) 
    4848                    $oDb->query("DELETE FROM `sys_categories` WHERE 
    49                         `Category` = '$sCategory' AND `ID` = $sId AND `Type` = '$sType'"); 
     49                        `Category` = '$sCategory' AND `ID` = " . (int)$sId . " AND `Type` = '$sType'"); 
    5050            } 
    5151    } 
Note: See TracChangeset for help on using the changeset viewer.