Verified:

Celphi Game profile

Member
EE Patron
6349

Jan 12th 2020, 14:24:12

This means same thing btw... so the 2nd part isn't necessary.

 } elseif (PublicMarket::price($key) == null || PublicMarket::price($key) == 0) {


https://github.com/...ter/country_functions.php


var_dump(null == 0); // true
var_dump(null === 0); // false
Resistance is futile. You will be assimilated.

Requiem Game profile

Member
EE Patron
9468

Jan 12th 2020, 17:24:58

I’d say 99% of the time you should use ===

Is that fair to say?

At least for php and js, c# is a bit different.
I financially support this game; what do you do?

LittleItaly Game profile

Game Moderator
Alliance, FFA, & Cooperation
2219

Jan 12th 2020, 22:01:09

why post it here and not do a PR in github?
LittleItaly
SOL Vet
-Discord: LittleItaly#2905
-IRC: irc.scourge.se #sol
-Apply today @ http://sol.ghqnet.com for Alliance

Pang Game profile

Administrator
Game Development
5731

Jan 13th 2020, 22:49:25

Originally posted by LittleItaly:
why post it here and not do a PR in github?


^^ I'd love to see folks putting PRs up for that repo!
-=Pang=-
Earth Empires Staff
pangaea [at] earthempires [dot] com

Boxcar - Earth Empires Clan & Alliance Hosting
http://www.boxcarhosting.com