Created
March 4, 2021 21:19
-
-
Save tim-cotten/4fb0c4ff074b8bff53de0121d4ad39ed to your computer and use it in GitHub Desktop.
PHP Bugs: Confusing Non-Objects for Objects (Example D)
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 with drop-ship items from store lookups | |
foreach ($order->product as $_product) { | |
if ($_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