From d9d60346ff051e1a2e50fb462d9042db3ebbdb0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 4 Mar 2017 10:34:46 +0100 Subject: [PATCH] more usage of dbm::is_result() and sorted a bit statements MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- mod/admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/admin.php b/mod/admin.php index 39416dae54..7eadbb79ed 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -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'); -- 2.39.5