Skip to content

Commit

Permalink
Update sunshutter.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jan 30, 2024
1 parent e75d1c2 commit 4537595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/class/sunshutter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ public function calculPosition() {
log::add(__CLASS__, 'debug', $this->getHumanName() . ' ' . __('Calcul de positionnement - Action par défaut : Position personnalisée', __FILE__) . ' ' . __('à', __FILE__) . ' ' . $default . ' %');
break;
default:
$default = null;
$default = $this->getCurrentPosition();
log::add(__CLASS__, 'debug', $this->getHumanName() . ' ' . __('Calcul de positionnement - Action par défaut : Ne rien faire', __FILE__));
break;
}
Expand Down Expand Up @@ -647,7 +647,7 @@ public function executeAction($_force = false) {
return;
}
}
if ($position !== null && $_force) {
if ($position !== null || $_force) {
log::add(__CLASS__, 'debug', $this->getHumanName() . ' ' . __('Positionnement à', __FILE__) . ' ' . $position . ' %');
$cmd = cmd::byId(str_replace('#', '', $this->getConfiguration('shutter::position')));
if (is_object($cmd)) {
Expand Down

0 comments on commit 4537595

Please sign in to comment.