2014-03-04, 02:37:15
(2014-03-03, 20:42:51)Oleg06 Wrote: I began to see that sometimes when you try to edit a page
Code:Warning: array_search() expects parameter 2 to be array, null given in B:\home\0abc.ru\www\plugins\i18n_navigation\editextras.php on line 18
[Денвер: показать возможную причину ошибки] var after = ""; function changeParent() { $parent = $('#post-parent').val(); if ($parent == null || $parent == '') { $('#post-menu-order').empty().html("
Not sure why this happens, but try to replace lines 15-19 of editextras.php with
Code:
# structure
$structure = return_i18n_page_structure(null,false,$url);
$siblings = @$pages[''.$parent]['children'];
if ($siblings) $myindex = array_search($url, $siblings); else $myindex = false;