From f8222c89afc5884ef191255267751e9b273ddf61 Mon Sep 17 00:00:00 2001 From: Alessandro Cosentino Date: Thu, 10 May 2012 16:02:23 -0400 Subject: changed the version number to update db tables --- appinfo/info.xml | 2 +- lib/feed.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index ec5e33934..f8e6f9ba4 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -3,7 +3,7 @@ news News An RSS/Atom feed reader - 0.1 + 0.2 AGPL Alessandro Cosentino 3 diff --git a/lib/feed.php b/lib/feed.php index 91380c6b1..cd38fb95a 100644 --- a/lib/feed.php +++ b/lib/feed.php @@ -54,11 +54,11 @@ class OC_News_Feed extends SimplePie_Core{ //FIXME: Detect when user adds a known feed $query = OCP\DB::prepare(" INSERT INTO *PREFIX*news_feeds - (url, title, userid, added, lastmodified) + (url, title, user_id, added, lastmodified) VALUES (?, ?, ?, $_ut, $_ut) "); - $title = $this->sp->get_title(); + $title = $this->get_title(); if(empty($title)) { $l = OC_L10N::get('news'); -- cgit v1.2.3