From 5fd13bc232fccc7f0e07c89c624d65c9bfdf200e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 4 Aug 2011 13:58:14 +0000 Subject: [PATCH] Fix: Bad path on fedora --- htdocs/lib/databases/mysqli.lib.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/lib/databases/mysqli.lib.php b/htdocs/lib/databases/mysqli.lib.php index 7aaba18459e..bf0e7c3dd13 100644 --- a/htdocs/lib/databases/mysqli.lib.php +++ b/htdocs/lib/databases/mysqli.lib.php @@ -22,7 +22,7 @@ /** * \file htdocs/lib/databases/mysqli.lib.php * \brief Class file to manage Dolibarr database access for a Mysql database - * \version $Id: mysqli.lib.php,v 1.113 2011/07/31 23:26:03 eldy Exp $ + * \version $Id: mysqli.lib.php,v 1.114 2011/08/04 13:58:14 eldy Exp $ */ // For compatibility during upgrade @@ -1155,8 +1155,8 @@ class DoliDb } /** - * \brief Return full path of dump program - * \return string Full path of dump program + * Return full path of dump program + * @return string Full path of dump program */ function getPathOfDump() { @@ -1167,14 +1167,14 @@ class DoliDb { $liste=$this->fetch_array($resql); $basedir=$liste['Value']; - $fullpathofdump=$basedir.'bin/mysqldump'; + $fullpathofdump=$basedir.(preg_match('/\/$/',$basedir)?'':'/').'bin/mysqldump'; } return $fullpathofdump; } /** - * \brief Return full path of restore program - * \return string Full path of restore program + * Return full path of restore program + * @return string Full path of restore program */ function getPathOfRestore() {