TemKa_SD Posted February 23, 2019 Share Posted February 23, 2019 Здравствуйте. Я уже задавал этот вопрос, так и не разобрался, сделал отдельную тему. Имею в виджете вот такой вывод: isset( implode( ',', $this->configuration['ActiveGamesWidgetBots'] ) ) ? $this->configuration['ActiveGamesWidgetBots'] : '*' Где мне в итоге парсить через implode? Там дальше шаблона ничего нет уже: http://prntscr.com/mp3z36 -------------------- Правильно? Link to comment Share on other sites More sharing options...
siv1987 Posted February 23, 2019 Share Posted February 23, 2019 @TemKa_SD, isset не может принимать результат выражения, только переменную. isset( $this->configuration['ActiveGamesWidgetBots'] ) ? implode( ',', $this->configuration['ActiveGamesWidgetBots'] ) : '*' Link to comment Share on other sites More sharing options...
TemKa_SD Posted February 23, 2019 Author Share Posted February 23, 2019 Да, я уже понял. Я правильно сделал? 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 More sharing options...
siv1987 Posted February 23, 2019 Share Posted February 23, 2019 Да вроде правильно. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now