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:
parent
c60605ce0c
commit
9cfc249b12
8 changed files with 39 additions and 24 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue