that was from line 83 to the end of the coding...i don't understand what would be wrong in this?!😕
$sql = "SELECT *
FROM " . ACP_SECTION_MODULES_TABLE . "
WHERE section_id = $section_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain acp index modules', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$catrow_temp = $row['catrow'];
$modulerow_temp = $row['modulerow'];
}
$db->sql_freeresult($result);
$catrow_temp = eval("\$catrow = " . $catrow_temp);
$modulerow_temp = eval("\$modulerow = " . $modulerow_temp);
for( $i = 0; $i < count($catrow); $i++ )
{
$cat_name = $catrow[$i];
$template->assign_block_vars('catrow', array(
'ADMIN_CATEGORY' => $cat_name)
);
for( $j = 0; $j < count($modulerow[$i]); $j++ )
{
$module_name = $modulerow[$i][$j][0];
$module_link = $modulerow[$i][$j][1];
$template->assign_block_vars('catrow.modulerow', array(
'ADMIN_MODULE' => $module_name,
'U_ADMIN_MODULE' => append_sid($module_link.'.'.$phpEx))
);
}
}
?>