]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / match.php
index 33e07c91ce40fbcf9614d0aca83040756c49c8b0..f7fe325b3868937786e2b2cc9fd9728c849babd4 100644 (file)
@@ -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);