fuel / auth

Fuel PHP Framework - Fuel v1.x Authentication package
http://fuelphp.com/docs/packages/auth/intro.html
76 stars 57 forks source link

Add an explicit integer-cast to ormgroup::member(group-object). #116

Closed Doeme closed 8 years ago

Doeme commented 8 years ago

The comparison $group_id === (int) $group[1]->id fails otherwise. (see issue #115)

WanWizard commented 8 years ago

Good find.

It's probably better to add the cast to the comparison itself, instead of here. Because if you call the method with $group_id = "100", it will still fail because your solution is bypassed?

Doeme commented 8 years ago

Made the change in a474cf5ca294c7e241ff171e27a32ca6353b9f40

WanWizard commented 8 years ago

Thanks!