Jump to content

Just a tiny modification


Sandakelum™
 Share

Recommended Posts

Hey, I don't know where else to post this. It's nothing really. But I don't know why IPS made it like this.

admin/sources/base/ipsMember.php (2935-2942 lines)

But don't you think it's better to replace:

//-----------------------------------------
// Load the member?
//-----------------------------------------

if ( ! is_array( $member ) AND ( $member == intval( $member ) AND $member > 0 ) )
{
    $member = self::load( $member, 'all' );
}

With this?:

//-----------------------------------------
// Load the member?
//-----------------------------------------

if ( is_numeric( $member ) )
{
    $member = self::load( $member, 'all' );
}

Or maybe...

if ( is_numeric( $member ) AND $member > 0 )

Thanks for reading this boring post. :smile:

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...