Skip to content

Commit

Permalink
fixed fatal error in copy replace.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Feb 24, 2024
1 parent 45bb784 commit d183f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/copy_replace.php
Expand Up @@ -314,7 +314,7 @@ function process($values){
$dummyForm =& $this->getTableForm($query['-table']);
foreach ($replacements as $key=>$val){
$dummyForm =& $this->getTableForm($fields[$key]['tablename']);
if ( strpos($val,'=') === 0 ){
if (is_string($val) && strpos($val,'=') === 0 ){
// This is a calculated change so we don't try to push the value
// we'll let it go through
continue;
Expand Down Expand Up @@ -391,7 +391,7 @@ function process($values){
if ( $failed ) continue;
foreach ($replacements as $k=>$v){

if ( strpos($v,'=') === 0 ){
if ( is_string($v) && strpos($v,'=') === 0 ){
$replacements[$k] = $copyTool->evaluate($v, $k, $record);
}
}
Expand Down

0 comments on commit d183f7b

Please sign in to comment.