- replace ereg_replace() by preg_replace()

This commit is contained in:
steinm 2012-07-18 12:06:47 +00:00
parent c7f3e33c73
commit 0af1c8cec4

View File

@ -223,7 +223,7 @@ class LetoDMS_Core_Folder {
return false;
foreach ($resArr as $row) {
$newPath = ereg_replace("^.*:".$this->_id.":(.*$)", $pathPrefix."\\1", $row["folderList"]);
$newPath = preg_replace("/^.*:".$this->_id.":(.*$)/", $pathPrefix."\\1", $row["folderList"]);
$queryStr="UPDATE `tblDocuments` SET `folderList` = '".$newPath."' WHERE `tblDocuments`.`id` = '".$row["id"]."'";
$res = $db->getResult($queryStr);
}