aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-02 20:52:49 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-02 20:52:49 +0200
commit645291e8feb0f3e977b9518da7d731fda8cf1f30 (patch)
treeadc3483dac1b16b9b8a1f292efc85e588612352f /src/Wallabag/CoreBundle
parenta687c8d915276eee0c0494156700f7d0c0606735 (diff)
downloadwallabag-645291e8feb0f3e977b9518da7d731fda8cf1f30.tar.gz
wallabag-645291e8feb0f3e977b9518da7d731fda8cf1f30.tar.zst
wallabag-645291e8feb0f3e977b9518da7d731fda8cf1f30.zip
Add ability to patch an entry with more fields
Like when we create an entry, we can now patch an entry with new fields: - content - language - preview_picture - published_at - authors
Diffstat (limited to 'src/Wallabag/CoreBundle')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index bfaa1976..d5820e66 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -105,7 +105,7 @@ class ContentProxy
105 } 105 }
106 } 106 }
107 107
108 if (!empty($content['authors'])) { 108 if (!empty($content['authors']) && is_array($content['authors'])) {
109 $entry->setPublishedBy($content['authors']); 109 $entry->setPublishedBy($content['authors']);
110 } 110 }
111 111