summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-05-18 16:37:09 +0300
committerAndrew Dolgov <[email protected]>2021-05-18 16:37:09 +0300
commit9f6237a1b8ecbd6aea7c9de14ffef91e0b2ba463 (patch)
tree21ec3f79a6d796a6f95832bc571b55013e157d2d
parent57cd8acfc9470f09d88de0959121aa56b63ce107 (diff)
parent77031575abafce314f8b0ac4e5b234737e05ded7 (diff)
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
-rw-r--r--classes/config.php2
-rw-r--r--plugins/share/init.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/classes/config.php b/classes/config.php
index 1386b553a..4ae4a2407 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -485,7 +485,7 @@ class Config {
}
// ttrss_users won't be there on initial startup (before migrations are done)
- if (!Config::is_migration_needed() && self::get(Config::SINGLE_USER_MODE) && class_exists("PDO")) {
+ if (!Config::is_migration_needed() && self::get(Config::SINGLE_USER_MODE)) {
if (UserHelper::get_login_by_id(1) != "admin") {
array_push($errors, "SINGLE_USER_MODE is enabled but default admin account (ID: 1) is not found.");
}
diff --git a/plugins/share/init.php b/plugins/share/init.php
index 195f9df2a..359d86802 100644
--- a/plugins/share/init.php
+++ b/plugins/share/init.php
@@ -142,7 +142,7 @@ class Share extends Plugin {
$line);
$enclosures = Article::_get_enclosures($line["id"]);
- list ($og_image, $og_stream) = Article::_get_image($enclosures, $line['content'], $line["site_url"], $line);
+ list ($og_image, $og_stream) = Article::_get_image($enclosures, $line['content'], $line["site_url"] ?? "", $line);
$content_decoded = html_entity_decode($line["title"], ENT_NOQUOTES | ENT_HTML401);
$parsed_updated = TimeHelper::make_local_datetime($line["updated"], true, $owner_uid, true);