diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 17:30:17 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-03 17:30:17 +1100 |
| commit | dbae5dbf56a6659b5c06740e8e41cdc5fecbc1d0 (patch) | |
| tree | 29270206e8f64367d4a70d5599e20f9b94b2d6ea | |
| parent | 05712d745713944e2e2535879f1cc82fdae2070f (diff) | |
Remove "return to board" link when showing "board already exists" error
| -rw-r--r-- | mod.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -183,8 +183,10 @@ if(!preg_match('/^\w+$/', $b['uri'])) error(sprintf(ERROR_INVALIDFIELD, 'URI')); - if(openBoard($b['uri'])) + if(openBoard($b['uri'])) { + unset($board); error(sprintf(ERROR_BOARDEXISTS, sprintf(BOARD_ABBREVIATION, $b['uri']))); + } $query = prepare("INSERT INTO `boards` VALUES (NULL, :uri, :title, :subtitle)"); $query->bindValue(':uri', $b['uri']); |
