Jump to content

Table + search


newbie LAC

Recommended Posts

Posted

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)

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...