• Resolved signo

    (@signo)


    When DEBUG is turned on i get error Undefined offset: 0 at line 655 of file user-switching.php

    if ( ( 'switch_to_user' === $cap ) and ( $args[0] == $user_id ) ) {
    			$required_caps[] = 'do_not_allow';
    }

    If you add a test for empty at line 655 the error goes away

    if ( ( 'switch_to_user' === $cap ) and ( !empty( $args ) && $args[0] == $user_id ) ) {
    			$required_caps[] = 'do_not_allow';
    }

    https://www.ads-software.com/plugins/ultimate-member/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    Where is that file is loaded from? user-switching.php? because it is not part of Ultimate Member plugin. ??

    Hope to get a reply from you on this.

    Thanks!

    Thread Starter signo

    (@signo)

    Ooops sorry, i clicked the wrong browser tab to report the error. man i have to stop keeping so many tabs open, this error is for the user-switching plugin. Again sorry for reporting the error in the wrong forum.

    Plugin Author Ultimate Member

    (@ultimatemember)

    No need to be sorry, thanks for getting back to me on this topic ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined offset: 0’ is closed to new replies.