]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
added more curyl braces + spaces between "if" and brace
[friendica.git] / mod / match.php
index 33e07c91ce40fbcf9614d0aca83040756c49c8b0..69bf3c1101142f33bdd98c3ef40669d12f0d46c5 100644 (file)
@@ -27,8 +27,9 @@ 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);
                return;