diff options
author | Jannik Schönartz | 2017-12-28 15:55:49 +0100 |
---|---|---|
committer | Jannik Schönartz | 2017-12-28 15:55:49 +0100 |
commit | 086c7458fe2c59dbb907755648362917c615404e (patch) | |
tree | a0ddf550223e628e70bcf9fe33096c1f000d2742 /modules-available/exams/page.inc.php | |
parent | [usb-lock-off] Switched to the _hw db structure. Adding a device and db contr... (diff) | |
parent | [sysconfig] Restore long lost ajax functionality (diff) | |
download | slx-admin-086c7458fe2c59dbb907755648362917c615404e.tar.gz slx-admin-086c7458fe2c59dbb907755648362917c615404e.tar.xz slx-admin-086c7458fe2c59dbb907755648362917c615404e.zip |
Merge branch 'origin/master' into usb-lock-off
Diffstat (limited to 'modules-available/exams/page.inc.php')
-rw-r--r-- | modules-available/exams/page.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/exams/page.inc.php b/modules-available/exams/page.inc.php index a6bd7e16..75fb6a0b 100644 --- a/modules-available/exams/page.inc.php +++ b/modules-available/exams/page.inc.php @@ -330,9 +330,9 @@ class Page_Exams extends Page die('delete only works with a post request'); } $examid = Request::post('examid'); - $res = Database::exec("DELETE FROM exams WHERE examid = :examid;", compact('examid')); - $res = Database::exec("DELETE FROM exams_x_location WHERE examid = :examid;", compact('examid')); - if ($res === false) { + $res1 = Database::exec("DELETE FROM exams WHERE examid = :examid;", compact('examid')); + $res2 = Database::exec("DELETE FROM exams_x_location WHERE examid = :examid;", compact('examid')); + if ($res1 === false || $res2 === false) { Message::addError('exam-not-deleted-error'); } else { Message::addInfo('exam-deleted-success'); |