Verified:

Celphi

Member

5669

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

Member

5909

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.

LittleItaly

Game Moderator
FFA
1953

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

Administrator
Game Development
5579

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