From 9cbca41fbdcacbdf6fed8152c5f531e61f167efd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Dec 2005 14:06:15 +0100 Subject: fix bugs introduced by two previous patches --- functions.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index d34e133ae..97be0da2a 100644 --- a/functions.php +++ b/functions.php @@ -861,7 +861,7 @@ } function sanity_check($link) { - + $error_code = 0; $result = db_query($link, "SELECT schema_version FROM ttrss_version"); $schema_version = db_fetch_result($result, 0, "schema_version"); @@ -870,13 +870,12 @@ $error_code = 5; } - print ""; - if ($error_code != 0) { + print ""; return false; } else { return true; - } + } } ?> -- cgit v1.2.3