Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(update): fix loop for remove invalid android policies
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r authored and ajsb85 committed Feb 27, 2018
1 parent b60d42e commit 2840a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/upgrade/update_to_dev.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function plugin_flyvemdm_update_to_dev(Migration $migration) {
$result = $DB->request($request);
if (count($result) > 0) {
$mqttClient = PluginFlyvemdmMqttclient::getInstance();
foreach ($DB->request($result) as $row => $data) {
foreach ($result->next() as $data) {
$topic = "/" . $data['entities_id'] . "/fleet/" . $data['plugin_flyvemdm_fleets_id'] . "/Policy/" . $data['symbol'] . "/Task/" . $data['id'];
$mqttClient->publish($topic, null, 0, 1);
}
Expand Down

0 comments on commit 2840a7b

Please sign in to comment.