Moved is_filled_array() to both dba classes and named it is_result().

Please see ticket #2390 for full discussion.

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-03-12 18:54:55 +01:00
commit 9cfc249b12
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
8 changed files with 39 additions and 24 deletions

View file

@ -360,13 +360,13 @@ function message_content(&$a) {
dbesc($myprofile)
);
if (is_filled_array($r)) {
if (dba::is_result($r)) {
$a->set_pager_total($r[0]['total']);
}
$r = get_messages(local_user(), $a->pager['start'], $a->pager['itemspage']);
if(! is_filled_array($r)) {
if(! dba::is_result($r)) {
info( t('No messages.') . EOL);
return $o;
}