bug
-
Hi Jean!
Php 7+ is throwing a notice:PHP Notice: Undefined offset: 0 in /path/to/wp-content/plugins/base64-images-modified/classes/class-base-64-images.php on line 246
Here:
//get background-image from style $tags = $doc->getElementsByTagName('div'); foreach ($tags as $tag) { $style = $tag->getAttribute('style'); preg_match('/\(([^)]+)\)/', $style, $match); $src = trim($match['0'], "'()\"");// <---['0'] unidefined $content = $this->change_source($src, $content);
Just thought that you should know.
Cheers and thanks!
-Brian
- The topic ‘bug’ is closed to new replies.