]> git.mxchange.org Git - friendica.git/commitdiff
More issues fixed
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 5 Jan 2018 05:28:56 +0000 (00:28 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 5 Jan 2018 05:28:56 +0000 (00:28 -0500)
- Replaced sizeof by count
- Used DBM::is_result()

mod/admin.php

index a39a189f8d70cec864d968c85e4b8dd86c2926d3..ca4158ce4e92ba9da458c2749c41e83cf94dd40f 100644 (file)
@@ -671,7 +671,7 @@ function admin_page_queue(App $a)
        return replace_macros($t, array(
                '$title' => t('Administration'),
                '$page' => t('Inspect Queue'),
-               '$count' => sizeof($r),
+               '$count' => count($r),
                'id_header' => t('ID'),
                '$to_header' => t('Recipient Name'),
                '$url_header' => t('Recipient Profile'),
@@ -836,11 +836,8 @@ function admin_page_site_post(App $a)
 
                        $upds = implode(", ", $upd);
 
-
-
-                       $q = sprintf("UPDATE %s SET %s;", $table_name, $upds);
-                       $r = q($q);
-                       if (!$r) {
+                       $r = q("UPDATE %s SET %s;", $table_name, $upds);
+                       if (!DBM::is_result($r)) {
                                notice("Failed updating '$table_name': " . dba::errorMessage());
                                goaway('admin/site');
                        }