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:
parent
d2d6200669
commit
d9d60346ff
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue