[RSS Feed/News] Switch case fallthrough

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
The following code does not show an error in PhpStorm IDE but this leads to a switch fallthrough (which I didn't intentionally do in the block of code).

PHP:

Code:
            $author_option = $this->options['select_author'];

            switch ( $author_option ) {

                case ( $author_option === '1' ) :
                    $author_id = $post->post_author;

                    return XF::app()->finder( 'XF:User' )->where( 'user_id', $author_id )->fetchOne();

                case (...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom