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
1 changed files with 1 additions and 0 deletions
|
@ -917,6 +917,7 @@ function admin_page_site_post(App $a)
|
||||||
$upds = implode(", ", $upd);
|
$upds = implode(", ", $upd);
|
||||||
|
|
||||||
$r = q("UPDATE %s SET %s;", $table_name, $upds);
|
$r = q("UPDATE %s SET %s;", $table_name, $upds);
|
||||||
|
|
||||||
if (!DBM::is_result($r)) {
|
if (!DBM::is_result($r)) {
|
||||||
notice("Failed updating '$table_name': " . dba::errorMessage());
|
notice("Failed updating '$table_name': " . dba::errorMessage());
|
||||||
goaway('admin/site');
|
goaway('admin/site');
|
||||||
|
|
Loading…
Reference in a new issue