을 제공 :오류 : mysql_fetch_assoc()는 매개 변수 (1) 자원이 될 것으로 예상, 부울 나는 다음과 같은 오류를 얻고있다
파일 위치 : /var/www/app.site.com/html/admin/functions/ihooks. PHP 라인 : 600 메시지 : mysql_fetch_assoc()는 매개 변수 (1) 자원이 될 것으로 예상, 부울 주어진 오류 유형 : 경고, 오류 번호 : 2 주소 : 여기
http://app.site.com/admin/main.php?action=report 그것을 참조하는 기능입니다 (라인 584에서 시작)
function ihook_ac_admin_get_noauth() {
$guest = array_merge(
ac_sql_default_row('acp_globalauth', true),
ac_sql_default_row('#user')
);
$guest['fullname'] = '';
$guest['campaigns_sent'] =
$guest['campaigns_sent_total'] =
$guest['emails_sent'] =
$guest['emails_sent_total'] = 0;
// here we should deal with groups
$guest['groups'] = array(1 => 1);
// here we should deal with allowed lists
$guest['lists'] = ac_sql_select_box_array("SELECT listid, listid FROM #list_group WHERE groupid = 1");
// here we should deal with global permissions
$sql = ac_sql_query("SELECT * FROM #group WHERE id = 1");
while ($row = mysql_fetch_assoc($sql)) {
// loop through all permissions in every group
foreach ($row as $k => $v) {
// looking for perms only
if (substr($k, 0, 3) == 'pg_' or substr($k, 0, 2) == 'p_') {
// if not set, or has NO ACCESS, overwrite
if (!isset($guest[$k]) or !$guest[$k]) {
$guest[$k] = $row[$k];
}
}
}
}
모든 도움을 주시면 감사하겠습니다.
'ac_sql_query'가 실패했습니다. 오류 처리기를 사용하십시오! – Kermit