Index: branches/5.0.x/core/kernel/db/cat_tag_processor.php =================================================================== diff -u -r12497 -r12511 --- branches/5.0.x/core/kernel/db/cat_tag_processor.php (.../cat_tag_processor.php) (revision 12497) +++ branches/5.0.x/core/kernel/db/cat_tag_processor.php (.../cat_tag_processor.php) (revision 12511) @@ -1,6 +1,6 @@ 0) { // scan only current category & it's children $sql = 'SELECT TreeLeft, TreeRight - FROM '.TABLE_PREFIX.'Category - WHERE CategoryId = '.$category_id; + FROM ' . TABLE_PREFIX . 'Category + WHERE CategoryId = ' . (int)$category_id; $tree_info = $this->Conn->GetRow($sql); $sql = 'SELECT MAX(item_table.Modified) AS ModDate, MAX(item_table.CreatedOn) AS NewDate