News:

Wondering if this will always be free?  See why free is better.

Main Menu

Possible bug in Subs-Boards.php in v1.1RC1

Started by mmenninger, October 02, 2005, 12:54:34 AM

Previous topic - Next topic

mmenninger

Hi, I'm trying to delete a board in Admin|Forum|Boards by clicking on (modify) next to the board's name and Delete Category on the next page.

I then get this error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
File: /home/mindway/public_html/forum/Sources/Subs-Boards.php
Line: 1190

The board no longer shows up in my forum page, but it's still there in my admin panel.

I'm not especially proficient at MySQL so I haven't looked into the Subs-Boards.php file to check the syntax.  I thought I'd post it here first.

My site is here: hxxp:forum.opencsoproject.org [nonactive]

-Marc

Trekkie101



Sverre


clickbouyow


kai920

courtesy of TORA - original thread here
Have just tested it and confirmed it works! My category is now deleted.

edit Sources/Subs-Boards.php

Find this 4 lines ~1154:

// Remove one or more boards.
function deleteBoards($boards_to_remove, $moveChildrenTo = null)
{
global $db_prefix, $sourcedir, $boards;


add after:


if (empty($boards_to_remove))
return true;


Advertisement: