summaryrefslogtreecommitdiffstats
path: root/db/feedmapper.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2013-03-03 22:27:18 +0100
committerAlessandro Cosentino <cosenal@gmail.com>2013-03-03 22:27:18 +0100
commitef450898bb702877dafb755e425fe8f37b23417b (patch)
tree53162b432a7f5a6c9d99d9eb77aee30d670853ae /db/feedmapper.php
parent0852773340ed26ecc8faa8e61192f38132673bc6 (diff)
create folder api call
Diffstat (limited to 'db/feedmapper.php')
-rw-r--r--db/feedmapper.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/db/feedmapper.php b/db/feedmapper.php
index 906ced069..62a7d41f5 100644
--- a/db/feedmapper.php
+++ b/db/feedmapper.php
@@ -163,10 +163,10 @@ class FeedMapper {
*/
//TODO: handle error case
public function save(Feed $feed, $folderid) {
- $title = $feed->getTitle();
$url = $feed->getUrl();
$url_hash = md5($url);
+ $title = $feed->getTitle();
if(empty($title)) {
$l = \OC_L10N::get('news');
$title = $l->t('no title');
@@ -199,11 +199,12 @@ class FeedMapper {
//update the db. it needs to be done, since it might be the first save after a full fetch
$stmt = \OCP\DB::prepare('
UPDATE ' . self::tableName .
- ' SET favicon_link = ? , lastmodified = UNIX_TIMESTAMP() , folder_id = ?
+ ' SET title = ? , favicon_link = ? , lastmodified = UNIX_TIMESTAMP() , folder_id = ?
WHERE id = ?
');
$params=array(
+ $title,
$favicon,
$folderid,
$feedid