X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmatch.php;h=f7fe325b3868937786e2b2cc9fd9728c849babd4;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=33e07c91ce40fbcf9614d0aca83040756c49c8b0;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/match.php b/mod/match.php index 33e07c91ce..f7fe325b38 100644 --- a/mod/match.php +++ b/mod/match.php @@ -27,7 +27,7 @@ function match_content(&$a) { $r = q("SELECT `pub_keywords`, `prv_keywords` FROM `profile` WHERE `is-default` = 1 AND `uid` = %d LIMIT 1", intval(local_user()) ); - if(! count($r)) + if(! dbm::is_result($r)) return; if(! $r[0]['pub_keywords'] && (! $r[0]['prv_keywords'])) { notice( t('No keywords to match. Please add keywords to your default profile.') . EOL);