mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
- replace ereg_replace() by preg_replace()
This commit is contained in:
parent
c7f3e33c73
commit
0af1c8cec4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user