From 053f6ae4943727bb4e9178649982c7f2203bfe29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Tue, 12 May 2015 19:10:47 +0200 Subject: [PATCH] [Qual] Fixed missing return statements --- htdocs/core/db/mssql.class.php | 10 ++++++---- htdocs/core/db/sqlite3.class.php | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/htdocs/core/db/mssql.class.php b/htdocs/core/db/mssql.class.php index 0aed5a6ee11..b097ee6f759 100644 --- a/htdocs/core/db/mssql.class.php +++ b/htdocs/core/db/mssql.class.php @@ -282,8 +282,9 @@ class DoliDBMssql extends DoliDB elseif ($this->transaction_opened > 1) { return true; - } else - trigger_error("Commit requested but no transaction remain"); + } + trigger_error("Commit requested but no transaction remain"); + return false; } /** @@ -306,8 +307,9 @@ class DoliDBMssql extends DoliDB elseif ($this->transaction_opened > 1) { return true; - } else - trigger_error("Rollback requested but no transaction remain"); + } + trigger_error("Rollback requested but no transaction remain"); + return false; } /** diff --git a/htdocs/core/db/sqlite3.class.php b/htdocs/core/db/sqlite3.class.php index 0efc201a696..75ed10175a0 100644 --- a/htdocs/core/db/sqlite3.class.php +++ b/htdocs/core/db/sqlite3.class.php @@ -504,6 +504,7 @@ class DoliDBSqlite3 extends DoliDB if ($ret) { return (object) $ret; } + return false; } @@ -522,6 +523,7 @@ class DoliDBSqlite3 extends DoliDB if ($ret) { return (array) $ret; } + return false; } /**