Modified database.php to fix syntax error in condition

This commit is contained in:
Peio Rigaux 2020-01-23 14:11:30 +01:00
parent d6e2ef7f9e
commit 804ba97924
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@
#%define _datadir %{_datarootdir}
#%define _docdir %{_datadir}/doc
%define build_number 16
%define build_number 17
#%if %{build_number}
#%define build_number_ext -%{build_number}
#%endif
@ -76,6 +76,6 @@ rm -rf $RPM_BUILD_ROOT
* Thu Jul 4 2019 Sylvain Berfini <sylvain.berfini@belledonne-communications.com>
- New files layout
* Fri Jun 28 2019 Johan Pascal <johan.pascal@belledonne-communications.com>
-
-
* Fri May 18 2018 Matthieu TANON <matthieu.tanon@belledonne-communications.com>
- Initial RPM release.

View file

@ -30,7 +30,7 @@ class Database
try {
if(!empty(DB_ENABLE_SSL) && !empty(ROOT_CA_PATH)){
if(!file_exists ( string ROOT_CA_PATH )){
if(!file_exists (ROOT_CA_PATH)){
Logger::getInstance()->error("MySQL connection error: the provided ROOT_CA_PATH does not exists!");
}
else{