gabordemooij/redbean — Issue #107: Notice in R::find
Author: alrik11es
Created: 2011-11-13 19:36:31+00:00
State: open

Supposing that $page is a string.
$pages = R::find('page',' uri_name = ?', array( $page ));

The result is OK if nothing it returns an empty array. But also gives a notice:
Notice: Array to string conversion in xxxxxxxxxxxxxxxxxxxxxx\Driver\PDO.php on line 184

Stack trace:
4	0.0589	2025848	RedBean_Facade::find( )	..\docsController.php:17
5	0.0589	2026216	RedBean_OODB->find( )	..\Facade.php:433
6	0.0589	2026216	RedBean_QueryWriter_AQueryWriter->selectRecord( )	..\OODB.php:175
7	0.0746	2032856	RedBean_Adapter_DBAdapter->get( )	..\AQueryWriter.php:360
8	0.0747	2033152	RedBean_Driver_PDO->GetAll( )	..\DBAdapter.php:106
9	0.0747	2033880	RedBean_Driver_PDO->bindParams( )	..\PDO.php:224
10	0.0748	2034440	PDOStatement->bindParam( )	..\PDO.php:184

My PHP Version is 5.3.8