Error Description: When clicking the next button in the Member log I get a bunch of the below errors.
page: /roster/index.php?p=guild-memberslist-log&a=g:1&alts=ungroup&st=25
Error Info:
- Code: Select all
PHP Errors
addons/memberslist/inc/memberslist.php
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Notice line 402: Undefined index: main_id
Notice line 411: Undefined index: main_id
Suggestions:
The fix is the following:
- Code: Select all
Index: addons/memberslist/guild/log.php
===================================================================
--- addons/memberslist/guild/log.php (revision 2215)
+++ addons/memberslist/guild/log.php (working copy)
@@ -23,7 +23,8 @@
'SELECT *, DATE_FORMAT( `update_time`, "' . $roster->locale->act['timeformat'] . '" ) AS date, '.
"IF( `members`.`note` IS NULL OR `members`.`note` = '', 1, 0 ) AS 'nisnull', ".
'UNIX_TIMESTAMP(`update_time`) AS date_stamp '.
- 'FROM `'.$roster->db->table('memberlog').'` AS members ';
+ 'FROM `'.$roster->db->table('memberlog').'` AS members '.
+ 'LEFT JOIN `'.$roster->db->table('alts',$addon['basename']).'` AS alts ON `members`.`member_id` = `alts`.`member_id` ';
$where[] = '`guild_id` = "'.$roster->data['guild_id'].'"';
$order_last[] = '`date_stamp` DESC';