Skip to content

Commit 7f403fd

Browse files
committed
Merge branch 'hotfix/1.3.2.5'
2 parents 2f6514e + 91fc7d4 commit 7f403fd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

inc/alert.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ public static function findAllToNotify($show_only_login_alerts = false,
125125
$group_u = new Group_User;
126126
$fndgroup = array();
127127
if (isset($_SESSION['glpiID'])
128-
&& $fndgroup = $group_u->find("users_id = ".$_SESSION['glpiID'])) {
129-
$fndgroup = array_keys($fndgroup);
128+
&& $fndgroup_user = $group_u->find("users_id = ".$_SESSION['glpiID'])) {
129+
foreach ($fndgroup_user as $group) {
130+
$fndgroup[] = $group['groups_id'];
131+
}
130132
$fndgroup = implode(',', $fndgroup);
131133
}
132134
if (empty($fndgroup)) {

plugin.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ Features
4141
<author>TECLIB'</author>
4242
</authors>
4343
<versions>
44+
<version>
45+
<num>1.3.2.5</num>
46+
<compatibility>0.90.1</compatibility>
47+
<compatibility>9.1</compatibility>
48+
</version>
4449
<version>
4550
<num>1.3.2.4</num>
4651
<compatibility>0.90.1</compatibility>

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
--------------------------------------------------------------------------
2222
*/
2323

24-
define ('PLUGIN_NEWS_VERSION', '1.3.2.4');
24+
define ('PLUGIN_NEWS_VERSION', '1.3.2.5');
2525

2626
function plugin_init_news() {
2727
global $PLUGIN_HOOKS;

0 commit comments

Comments
 (0)