Continued rewriting a bit:

- more usage of dbm::is_result()
- nicer look of code

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-22 17:03:00 +01:00
parent 8db0be09b8
commit 5547bc2cc2
2 changed files with 16 additions and 18 deletions

View file

@ -1260,7 +1260,7 @@ function tag_deliver($uid,$item_id) {
$c = q("select name, url, thumb from contact where self = 1 and uid = %d limit 1",
intval($u[0]['uid'])
);
if (! count($c)) {
if (! dbm::is_result($c)) {
return;
}
@ -1293,8 +1293,6 @@ function tag_deliver($uid,$item_id) {
function tgroup_check($uid,$item) {
$a = get_app();
$mention = false;
// check that the message originated elsewhere and is a top-level post

View file

@ -28,7 +28,7 @@ function allfriends_content(App &$a) {
intval(local_user())
);
if (! count($c)) {
if (! dbm::is_result($c)) {
return;
}