summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/update.php b/update.php
index 0bf8f499f..56158ca48 100755
--- a/update.php
+++ b/update.php
@@ -502,13 +502,10 @@
Debug::log("Exporting feeds of user $user to $filename as OPML...");
- $sth = $pdo->prepare("SELECT id FROM ttrss_users WHERE LOWER(login) = LOWER(?)");
- $sth->execute([$user]);
-
- if ($res = $sth->fetch()) {
+ if ($owner_uid = UserHelper::find_user_by_login($user)) {
$opml = new OPML("");
- $rc = $opml->opml_export($filename, $res["id"], false, true, true);
+ $rc = $opml->opml_export($filename, $owner_uid, false, true, true);
Debug::log($rc ? "Success." : "Failed.");
} else {