Created
March 4, 2021 21:42
-
-
Save tim-cotten/2dca04ff25cc99673b527dc3fb9182d0 to your computer and use it in GitHub Desktop.
PHP Bugs: Confusing Non-Objects for Objects (Example E)
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 | |
// Exclude orders that are drop-ship products from store lookups | |
if ($order->product->type == PRODUCT::TYPE_DROPSHIP) { | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment