Some problem with replace array
-
Hi!
Thanks for keeping this plugin updated!
Though, I noticed some problem with the replace array. When cloning a site I get a lot of this errors:
[08-Dec-2013 01:18:01 UTC] PHP Notice: Undefined offset: 2 in /storage/content/19/179819/dinbrfsida.se/public_html/dev/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 1058 [08-Dec-2013 01:18:01 UTC] PHP Notice: Undefined offset: 3 in /storage/content/19/179819/dinbrfsida.se/public_html/dev/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 1058 [08-Dec-2013 01:18:01 UTC] PHP Notice: Undefined offset: 4 in /storage/content/19/179819/dinbrfsida.se/public_html/dev/wp-content/plugins/ns-cloner-site-copier/ns-cloner.php on line 1058
…
I noticed that the $j variable used on line 1058 is increased inside this loop:
foreach( $replace_array as $search_for => $replace_with) { $j++; ....
Is that correct? Shouldn’t it be increased outside this loop?
Br,
Hans
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Some problem with replace array’ is closed to new replies.