Skip to content

Commit

Permalink
Merge pull request #74 from Phpvarious/patch-1
Browse files Browse the repository at this point in the history
Update mobile.api.php
  • Loading branch information
Sekiro-kost authored Sep 21, 2023
2 parents 7f6d78b + 0e4ad6e commit 3124dcb
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 3124dcb

Please sign in to comment.