newbie LAC Posted December 4, 2019 Posted December 4, 2019 Hello, Simple abstract code $table = new \IPS\Helpers\Table\Db('app_records', \IPS\Http\Url::internal('app=app&module=module&controller=controller')); $table->exclude = array('record_id'); $table->advancedSearch = array( 'record_member_id' => \IPS\Helpers\Table\SEARCH_MEMBER, ); \IPS\Output::i()->output = $table; generates an error array_key_exists() expects parameter 2 to be array, null given File: \system\Helpers\Table\Db.php Line: if( ( ( $this->include !== NULL and !\in_array( $k, $this->include ) ) or ( $this->exclude !== NULL and \in_array( $k, $this->exclude ) ) ) and !array_key_exists( $k, $advancedSearchValues ) ) $advancedSearchValues is NULL Backtrace: Whoops\Exception\ErrorException: array_key_exists() expects parameter 2 to be array, null given (2) #0 [internal function]: Whoops\Run->handleError(2, 'array_key_exist...', '', 426, Array) #1 \system\Helpers\Table\Db.php(426): array_key_exists('record_member_id', NULL) #2 \system\Helpers\Table\Table.php(489): IPS\Helpers\Table\_Db->getRows(NULL)
bfarber Posted December 4, 2019 Posted December 4, 2019 We'll take a look at resolving this error, but the solution will likely be slated for 4.5 since it's non-critical (on our side).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.