Skip to content

Commit

Permalink
Update mobile.api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Phpvarious authored Sep 20, 2023
1 parent 7f6d78b commit 0e4ad6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/api/mobile.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ function createMobile($params){

function checkDateMenu($menu, $mobile){
$dateMobile = $mobile->getConfiguration('DateMenu', 'pasdedate');
$dateMenuFromApp = $menu['date'];
if(isset($dateMobile) && isset($menu['date'])){
if($dateMobile < $dateMenuFromApp){
if($dateMobile < $menu['date']){
log::add('mobile','debug','SAVE MENU DEPUIS L APP');
saveMenuFromAppV2($menu, $mobile);
}else{
Expand Down

0 comments on commit 0e4ad6e

Please sign in to comment.