Dotclear

Changeset 2707:f4749a8fc3ce


Ignore:
Timestamp:
05/14/14 22:30:31 (11 years ago)
Author:
Dsls
Branch:
2.6
Message:

Strenghened categories ordering, thx Egidio Romano

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.categories.php

    r2566 r2707  
    190190        public function updatePosition($id,$left,$right) 
    191191        { 
     192               $node_left = (integer) $left; 
     193               $node_right = (integer) $right; 
     194               $node_id = (integer) $id; 
    192195                $sql = 'UPDATE '.$this->table.' SET ' 
    193                         .$this->f_left.' = '.$left.', ' 
    194                         .$this->f_right.' = '.$right 
    195                         .' WHERE '.$this->f_id .' = '.(integer) $id 
     196                        .$this->f_left.' = '.$node_left.', ' 
     197                        .$this->f_right.' = '.$node_right 
     198                        .' WHERE '.$this->f_id .' = '.$node_id 
    196199                        .$this->getCondition(); 
    197200 
Note: See TracChangeset for help on using the changeset viewer.

Sites map