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'),
$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');
}