2
0
forked from Wavyzz/dolibarr

Fix: Blank page when renaming product ref

This commit is contained in:
Laurent Destailleur
2012-09-19 14:16:29 +02:00
parent 0e76bd7ac6
commit 0b4df34091

View File

@@ -525,7 +525,7 @@ class Product extends CommonObject
if (file_exists($olddir)) if (file_exists($olddir))
{ {
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php'; include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$res=dol_move($olddir, $newdir); $res=@dol_move($olddir, $newdir);
if (! $res) if (! $res)
{ {
$this->error='ErrorFailToMoveDir'; $this->error='ErrorFailToMoveDir';