]> git.mxchange.org Git - friendica.git/blobdiff - mod/install.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / install.php
index d18d4ac3e29fba1048d431529bbbd9a8f95e439a..da3c17d5f063c5ff8aa1c0d23605ad5f6f53e7fc 100755 (executable)
@@ -165,7 +165,7 @@ function install_content(&$a) {
 
        if($db && $db->connected) {
                $r = q("SELECT COUNT(*) as `total` FROM `user`");
-               if($r && count($r) && $r[0]['total']) {
+               if(dbm::is_result($r) && $r[0]['total']) {
                        $tpl = get_markup_template('install.tpl');
                        return replace_macros($tpl, array(
                                '$title' => $install_title,