Zum Inhalt der Seite gehen


@Friendica Developers

Hi @Michael Vogel I have a problem with dba::select(). It seems that this function doesn't work without parameters. E.g.:
$g = dba::select('photo',
	array('width', 'height'),
	array(
		'resource-id' => $image_id,
		'uid' => local_user(),
		'scale' => 2
	)
);

gives me no result. It seems that the $sql (query) is constructed correctly in dba:select()but something happens while executing dba::p() so dba::select() don't output the result.
Or is this an intended behavior?
Ahh ok, this may be the cause of the error,