mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Supervisor minor fixes
Former-commit-id: 84171e197df0a016a9a4b7d0e49f0412b65ee864
This commit is contained in:
parent
681ad67028
commit
42b0afb884
@ -387,7 +387,6 @@ class ConsoleSupervisor
|
|||||||
}
|
}
|
||||||
|
|
||||||
$insertion_string = substr($insertion_string, 0, -1);
|
$insertion_string = substr($insertion_string, 0, -1);
|
||||||
|
|
||||||
db_process_sql($users_sql.' VALUES '.$insertion_string);
|
db_process_sql($users_sql.' VALUES '.$insertion_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -445,7 +444,7 @@ class ConsoleSupervisor
|
|||||||
public function notify(
|
public function notify(
|
||||||
array $data,
|
array $data,
|
||||||
int $source_id=0,
|
int $source_id=0,
|
||||||
int $max_age=0
|
int $max_age=86400
|
||||||
) {
|
) {
|
||||||
// Uses 'check failed' logic.
|
// Uses 'check failed' logic.
|
||||||
if (is_array($data) === false) {
|
if (is_array($data) === false) {
|
||||||
@ -562,6 +561,9 @@ class ConsoleSupervisor
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update reference to update targets.
|
||||||
|
$notification['id_mensaje'] = $id;
|
||||||
|
|
||||||
$this->updateTargets($notification);
|
$this->updateTargets($notification);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user