better fix
This commit is contained in:
parent
0f9bacb81a
commit
2db40ed8c4
|
@ -156,11 +156,13 @@ class ComicPressStoryline {
|
||||||
if (isset($this->_structure[$id])) {
|
if (isset($this->_structure[$id])) {
|
||||||
$all_adjacent = array();
|
$all_adjacent = array();
|
||||||
do {
|
do {
|
||||||
|
$new_id = $this->_structure[$id][$direction];
|
||||||
|
|
||||||
$has_adjacent = false;
|
$has_adjacent = false;
|
||||||
if (!in_array($id, $all_adjacent)) {
|
if (!in_array($new_id, $all_adjacent)) {
|
||||||
if ($has_adjacent = isset($this->_structure[$id][$direction])) {
|
if ($has_adjacent = isset($this->_structure[$id][$direction])) {
|
||||||
$all_adjacent[] = $this->_structure[$id][$direction];
|
$all_adjacent[] = $new_id;
|
||||||
$id = $this->_structure[$id][$direction];
|
$id = $new_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while ($has_adjacent);
|
} while ($has_adjacent);
|
||||||
|
|
Loading…
Reference in New Issue