Jump to content

Cannot use isset() on the result of an expression (you can use "null !== expression" instead)


Recommended Posts

Здравствуйте. Я уже задавал этот вопрос, так и не разобрался, сделал отдельную тему.


Имею в виджете вот такой вывод:


isset( implode( ',', $this->configuration['ActiveGamesWidgetBots'] ) ) ? $this->configuration['ActiveGamesWidgetBots'] : '*'


Где мне в итоге парсить через implode? Там дальше шаблона ничего нет уже: http://prntscr.com/mp3z36





Link to comment
Share on other sites

Да, я уже понял. Я правильно сделал?


 	if ( isset( $this->configuration['ActiveGamesWidgetBots'] ) && $this->configuration['ActiveGamesWidgetBots'] != '*' )
 		$this->configuration['ActiveGamesWidgetBots'] = implode( ',', $this->configuration['ActiveGamesWidgetBots'] );


isset( $this->configuration['ActiveGamesWidgetBots'] ) ? $this->configuration['ActiveGamesWidgetBots'] : '*',

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

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