diff --git a/core/class/mobile.class.php b/core/class/mobile.class.php
index 839ec158..83024dc8 100755
--- a/core/class/mobile.class.php
+++ b/core/class/mobile.class.php
@@ -319,7 +319,8 @@ public static function jsonPublish($os, $titre, $message, $type, $idNotif, $answ
}
}
}
-
+ // $publishJson = str_replace(['
', '
'], '', $publishJson);
+ // $publishJson = json_decode($publishJson, true);
$notifications[$idNotif] = $publishJson;
log::add('mobile', 'debug', '||| [INFO] Notification enregistrée : ' . json_encode($notifications));
file_put_contents($filePath, json_encode($notifications));
@@ -1018,8 +1019,8 @@ public function execute($_options = array())
if($this->getLogicalId() == 'removeNotifs') {
- $Iq = $eqLogic->getId();
- $filePath = dirname(__FILE__) . '/../../data/notifications/' . $Iq . '.json';
+ $Iq = $eqLogic->getLogicalId();
+ $filePath = dirname(__FILE__) . '/../data/notifications/' . $Iq . '.json';
if (file_exists($filePath)) {
file_put_contents($filePath, '');
log::add('mobile', 'info', '| Suppression des notifications effectuée: ');