Minor code bugs
-
A few minor code fixes that I put in to make it work with no errors that I thought I would share back here. They may not be an issue for everyone but I was getting errors.
in responsive-image-polyfill.php from line 357, change the if statement to check if $format->fallback exists rather than just looking for a truthy value to stop the undefined value error:
// Add the fallback, if requested if($format->fallback)
becomes:
// Add the fallback, if requested if(isset($format->fallback))
This one was odd though because it only happened on some installs – still, can’t hurt.
line 64 of config.php I got a deprecated function warning on
$value = mysql_escape_string($value);
so updated it to:
$value = mysql_real_escape_string($value);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Minor code bugs’ is closed to new replies.