Skip to content

Commit

Permalink
Merge pull request #985 from tarasfrompir/patch-3
Browse files Browse the repository at this point in the history
Update saverestore.class.php
  • Loading branch information
sergejey authored Jul 20, 2021
2 parents 5ca10b3 + 91ac181 commit 1973bbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/saverestore/saverestore.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ function run()
$out['EDIT_MODE'] = $this->edit_mode;
$out['MODE'] = $this->mode;
$out['ACTION'] = $this->action;
if ($this->single_rec) {
$out['SINGLE_REC'] = 1;
if (isset ($this->single_rec) && $this->single_rec) {
$out['SINGLE_REC'] = true;
} else {
$out['SINGLE_REC'] = false;
}
$this->data = $out;
$p = new parser(DIR_TEMPLATES . $this->name . "/" . $this->name . ".html", $this->data, $this);
Expand Down

0 comments on commit 1973bbb

Please sign in to comment.