Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
TemKa_SD

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

 

--------------------

 

Правильно?

Share this post


Link to post
Share on other sites

@TemKa_SD, isset не может принимать результат выражения, только переменную.

 

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

Share this post


Link to post
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'] : '*',

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...