enygma / expose

An Intrusion Detection System library loosely based on PHP IDS
MIT License
266 stars 55 forks source link

Calling FilterCollection::getFilterData( $id ) results in an error #40

Closed mpedrummer closed 8 years ago

mpedrummer commented 8 years ago

The function getFilterData works two different ways, though only one is used in Expose code - if called with no argument, it returns all filter data.

When called with an id, it's supposed to return ONLY that filter object, but throws an error instead.

In a new unit test: Expose\FilterConnectionTest::testGetSetFilterImpact Trying to get property of non-object

Will be submitting a pull request shortly, just documenting the separate issues.