diff --git a/classes/Digest.php b/classes/Digest.php index 27009530f..95827b310 100644 --- a/classes/Digest.php +++ b/classes/Digest.php @@ -17,7 +17,7 @@ class Digest $pdo = Db::pdo(); - $res = $pdo->query("SELECT id,email FROM ttrss_users + $res = $pdo->query("SELECT id, login, email FROM ttrss_users WHERE email != '' AND (last_digest_sent IS NULL OR $interval_qpart)"); while ($line = $res->fetch()) { @@ -191,7 +191,7 @@ class Digest $tpl_t->addBlock('article'); - if ($headlines[$i]['feed_title'] != $headlines[$i + 1]['feed_title']) { + if (!isset($headlines[$i + 1]) || $headlines[$i]['feed_title'] != $headlines[$i + 1]['feed_title']) { $tpl->addBlock('feed'); $tpl_t->addBlock('feed'); } diff --git a/classes/Pref_System.php b/classes/Pref_System.php index e85c1134d..2220199e7 100644 --- a/classes/Pref_System.php +++ b/classes/Pref_System.php @@ -197,9 +197,13 @@ class Pref_System extends Handler_Administrative { + find_one($_SESSION["uid"]); + ?> +
- 1]) ?> + email, "text", ['required' => 1]) ?>