Skip to content

Commit

Permalink
issue #137: fixed saving widget settings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YaWK committed Jun 7, 2021
1 parent a65e566 commit 7c8f1dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/classes/widget.php
Expand Up @@ -1123,6 +1123,9 @@ function save($db)
{
/** @var $db \YAWK\db */
$this->position = mb_strtolower($this->position);
// if widget should be displayed on all pages, pageID should be zero
if (empty($this->pageID || (!isset($this->pageID)))) { $this->pageID = 0; }

if ($this->date_unpublish === "0000-00-00 00:00:00" || (empty($this->date_unpublish)))
{
// sql code when date_unpublish is a zero date (NULL)
Expand Down

0 comments on commit 7c8f1dd

Please sign in to comment.