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

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');