Created
March 5, 2021 13:37
-
-
Save tim-cotten/178743dfb2c1945f36e84ab6dd20391f to your computer and use it in GitHub Desktop.
PHP Bugs: Arrays Don't Like Undefined Offsets (Example G)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!empty($img)) { | |
$tmg = pathinfo(str_replace('\\', '/', $img)); | |
$img = $tmg['basename']; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment