more usage of dbm::is_result() and sorted a bit statements

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-04 10:34:46 +01:00
parent d2d6200669
commit d9d60346ff
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
1 changed files with 1 additions and 0 deletions

View File

@ -917,6 +917,7 @@ function admin_page_site_post(App $a)
$upds = implode(", ", $upd);
$r = q("UPDATE %s SET %s;", $table_name, $upds);
if (!DBM::is_result($r)) {
notice("Failed updating '$table_name': " . dba::errorMessage());
goaway('admin/site');