forked from Wavyzz/dolibarr
Fix: Bad path on fedora
This commit is contained in:
@@ -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.114 2011/08/04 13:58:14 eldy Exp $
|
||||
* \version $Id: mysqli.lib.php,v 1.115 2011/08/04 13:58:55 eldy Exp $
|
||||
*/
|
||||
|
||||
// For compatibility during upgrade
|
||||
@@ -1185,7 +1185,7 @@ class DoliDb
|
||||
{
|
||||
$liste=$this->fetch_array($resql);
|
||||
$basedir=$liste['Value'];
|
||||
$fullpathofimport=$basedir.'bin/mysql';
|
||||
$fullpathofimport=$basedir.(preg_match('/\/$/',$basedir)?'':'/').'bin/mysql';
|
||||
}
|
||||
return $fullpathofimport;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user