Цитата:
Notice: Undefined variable: _attaches in \www\postings.php on line 1386
Warning: Invalid argument supplied for foreach() in \www\postings.php on line 1386
При анализе кода нашел ошибку...
Открываем файл postings.php в котором ищем строки
code:
/* С АТТАЧАМИ ЕСЛИ КОЛ-ВО АТТАЧЕЙ БОЛЬШЕ 0 */
if (count($attaches) !== 0) $_attaches = UpdateAttaches($newtopic,$attaches);
foreach ($_attaches as $post_id => $attach_id)
$newtopic[$post_id]['attach_id'] = $attach_id;
if (count($attaches) !== 0) $_attaches = UpdateAttaches($newtopic,$attaches);
foreach ($_attaches as $post_id => $attach_id)
$newtopic[$post_id]['attach_id'] = $attach_id;
которые заменяем строками
code:
/* С АТТАЧАМИ ЕСЛИ КОЛ-ВО АТТАЧЕЙ БОЛЬШЕ 0 */
if (count($attaches) !== 0) {$_attaches = UpdateAttaches($newtopic,$attaches);
foreach ($_attaches as $post_id => $attach_id)
$newtopic[$post_id]['attach_id'] = $attach_id;}
if (count($attaches) !== 0) {$_attaches = UpdateAttaches($newtopic,$attaches);
foreach ($_attaches as $post_id => $attach_id)
$newtopic[$post_id]['attach_id'] = $attach_id;}