PHP Warning: Undefined variable $dbResId
-
After updating PHP to version 8.1 I’m getting following warnings in debug.log:
PHP Warning: Undefined variable $dbResId in /[…]/wp-content/plugins/ultimate-maps-by-supsystic/modules/marker/models/marker.php on line 143
I think the
if ($dbResId)
check should be replaced with eitherif(isset($dbResId) && $dbResId)
or justif(isset($dbResId))
.
- The topic ‘PHP Warning: Undefined variable $dbResId’ is closed to new replies.