consolearmy added a post in a topic: Custom code has stopped working since upgrade
I have a quick question. Since I updated to this new version, a piece of my custom code has stopped working correctly.
I have a custom PHP block for IP.Content with the following inserted within:
$this->DB->build( array( 'select' => 'm.member_group_id, m.members_display_name, m.members_seo_name',
'from' => array( 'members' => 'm' ),
'where' => "pc.field_12=1 AND pc.field_13=2 AND pc.field_14=15 AND pc.field_15=1",
'add_join' => array( 0 => array( 'select' => 'pc.member_id',
'from' => array( 'pfields_content' => 'pc' ),
'where' => 'pc.member_id=m.member_id',
'type' => 'left' ) ),
while ( $row = $this->DB->fetch() )
echo IPSMember::makeProfileLink( IPSMember::makeNameFormatted( $row['members_display_name'], $row['member_group_id'] ), $row['member_id'], $row['members_seo_name'] ) . "<br />";
So, it is grabbing members from the database if they fulfil the Custom Profile Field values which are ran through the system.
The problem is, where there is more than one member that fulfills the values, it only returns the first members - it does not return any other members.
Could you please direct me as to what as changed for this to happen? If necessary escalate this up to development