Skip to content

Conversation

@Andrew-Staves-Activ
Copy link
Contributor

To indicate success.

@GregMage
Copy link
Contributor

GregMage commented Mar 5, 2023

This remark is right but we have to look completely at the notification.php file because there are several inconsistencies with the return values of the functions.
I will do the complete analysis as soon as I have some time.
We can close this PR

@mambax7
Copy link
Collaborator

mambax7 commented Oct 17, 2023

@GregMage I checked the Core and all possible modules, but none of them are using the return value. All of them have code like this:

 if ($notifypub) {
    require_once XOOPS_ROOT_PATH . '/include/notification_constants.php';
    $notificationHandler->subscribe('video', $newid, 'approve', XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
}

Since the return of the subscribe function is stated as "bool":
* @return bool
changing it to "true" makes perfect sense.

@mambax7 mambax7 merged commit 15955ea into XOOPS:master Oct 20, 2023
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.

4 participants