Skip to content

Commit

Permalink
deleter: manipulator_can_execute check for any falsy value of deletel…
Browse files Browse the repository at this point in the history
…ocal
  • Loading branch information
Sasha Anastasi committed Dec 11, 2024
1 parent 883f210 commit 074f934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/object_manipulator/deleter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function manipulate_object(stdClass $objectrecord) {
* @return bool
*/
protected function manipulator_can_execute() {
if ($this->deletelocal == 0) {
if (!$this->deletelocal) {
mtrace("Delete local disabled \n");
return false;
}
Expand Down

0 comments on commit 074f934

Please sign in to comment.