@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $sql = "SELECT * |
91 | 91 | FROM $this->items_table |
92 | - WHERE $this->pk = " . (int) $node_id ; |
|
92 | + WHERE $this->pk = " . (int) $node_id; |
|
93 | 93 | $result = $this->db->sql_query($sql); |
94 | 94 | $row = $this->db->sql_fetchrow($result); |
95 | 95 | $this->db->sql_freeresult($result); |
@@ -174,10 +174,10 @@ discard block |
||
174 | 174 | for ($i = 0, $size = sizeof($data); $i < $size; $i++) |
175 | 175 | { |
176 | 176 | $row = $data[$i]; |
177 | - $this_depth = $parental_depth[$row[$this->column_parent_id]] + 1; |
|
178 | - $repeat = (int) abs($prev_depth - $this_depth); |
|
177 | + $this_depth = $parental_depth[$row[$this->column_parent_id]] + 1; |
|
178 | + $repeat = (int) abs($prev_depth - $this_depth); |
|
179 | 179 | |
180 | - $tpl_data = array( |
|
180 | + $tpl_data = array( |
|
181 | 181 | 'PREV_DEPTH' => $prev_depth, |
182 | 182 | 'THIS_DEPTH' => $this_depth, |
183 | 183 | 'NUM_KIDS' => $this->count_descendants($row), |