-
Hi,
I’m building a new template for ended projects and I’m working on functions.php.
I’ve found that in some “if” there’s a wrong comparision:
<?php if($funded_amount > $target or $funded_amount == $targe){ ?>
<?php esc_html_e(‘Successful’, ‘fundingpress’); ?>
<?php }else{ ?>
<?php esc_html_e(‘Unsuccessful’, ‘fundingpress’); ?>
<?php } ?>
<?php } ?>The variable “$targe” is not defined at all, so the “if” give always “Succesful” end.
Is it possibile that the correct “if” should be:<?php if($funded_amount >= $target){ ?>
<?php esc_html_e(‘Successful’, ‘fundingpress’); ?>
<?php }else{ ?>
<?php esc_html_e(‘Unsuccessful’, ‘fundingpress’); ?>
<?php } ?>
<?php } ?>Thank you.
-
Please use the search before making a post. Your question maybe be already answered!
-
Do you need customization work? Are you having trouble installing Wordpress? Feeling lazy and want somebody else to do the hard work for you?
Join our discord!
Need hosting?
Follow us!