Skip to content
Snippets Groups Projects
Commit 01645a10 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: pb with call by ws

parent 66320b0e
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
* @param $data array Data array * @param $data array Data array
* @param $databasetype string Type of the db (MYSQL, SQLSERVER, ...) * @param $databasetype string Type of the db (MYSQL, SQLSERVER, ...)
*/ */
function load_into_db($table_res, $path, $filename, $docserver_path, $docserver_id, $data, $databasetype) function load_into_db($table_res, $path, $filename, $docserver_path, $docserver_id, $data, $databasetype, $calledByWs=false)
{ {
$filetmp = $docserver_path; $filetmp = $docserver_path;
$tmp = $path; $tmp = $path;
...@@ -160,7 +160,9 @@ ...@@ -160,7 +160,9 @@
{ {
if(!$this->insert($table_res, $data, $_SESSION['config']['databasetype'])) if(!$this->insert($table_res, $data, $_SESSION['config']['databasetype']))
{ {
$this->error = _INDEXING_INSERT_ERROR."<br/>".$this->show(); if (!$calledByWs) {
$this->error = _INDEXING_INSERT_ERROR."<br/>".$this->show();
}
return false; return false;
} }
else else
......
...@@ -116,7 +116,8 @@ class resources_controler ...@@ -116,7 +116,8 @@ class resources_controler
$storeResult['path_template'], $storeResult['path_template'],
$storeResult['docserver_id'], $storeResult['docserver_id'],
$data, $data,
$_SESSION['config']['databasetype'] $_SESSION['config']['databasetype'],
true
); );
if (!is_numeric($resId)) { if (!is_numeric($resId)) {
$returnResArray = array( $returnResArray = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment