Skip to content

Conversation

@mambax7
Copy link
Contributor

@mambax7 mambax7 commented Jan 19, 2025

No description provided.

@mambax7
Copy link
Contributor Author

mambax7 commented Jan 19, 2025

@koreus can you check these updates?

@koreus
Copy link

koreus commented Jan 20, 2025

@mambax7 It must be a dumb question, but what do you expect me to do ? I'm a newbie GitHub contributor :)
I have pull your branch. Do I have to do some tests in particular ? Thx

@koreus
Copy link

koreus commented Feb 15, 2025

@koreus can you check these updates?

I have this error when I enable the block Top News

Error: TypeError: XoopsModules/News/NewsStory::getAllPublished(): Argument #4 ($topic) must be of type int, array given, called in /modules/news/blocks/news_top.php on line 401 in file /modules/news/class/NewsStory.php line 222

The problem comes from function getAllPublished in class/NewsStory.php mambax7@6856d90

The function is declared with an int $topic but it blocks/news_top.php gives an array.

Two solution I have found :
PHP < 8.0 : remove the int before the $topic
PHP >= 8.0 : replace int by int|array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants