From: Koen Kooi Date: Tue, 11 Nov 2008 08:18:46 +0000 (+0100) Subject: feedbrowser: remove bogus check so the db will get created and fix SQL to get the... X-Git-Tag: Release-2010-05/1~5438 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c3da95f41b83a8709ccda9fdd2cd7bf087e4a15;p=openembedded.git feedbrowser: remove bogus check so the db will get created and fix SQL to get the feeds created --- diff --git a/contrib/feed-browser/includes/functions.inc b/contrib/feed-browser/includes/functions.inc index d4454ca708..4c7841f797 100644 --- a/contrib/feed-browser/includes/functions.inc +++ b/contrib/feed-browser/includes/functions.inc @@ -428,7 +428,7 @@ function check_database() { $db_exists = FALSE; - if(file_exists(DB_FILENAME) AND $db = sqlite_open(DB_FILENAME)) + if($db = sqlite_open(DB_FILENAME)) { $db_exists = TRUE; @@ -461,7 +461,7 @@ function check_database() f_id int(8), f_name varchar(32), f_uri varchar(100), - f_type varchar(16) + f_type varchar(16), f_comments varchar(500))"); insert_feeds ($db) ;