Browse Source

! Typos cause weird things to happen

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 11 years ago
parent
commit
b7aac812e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Calendar.php

+ 1 - 1
Sources/Calendar.php

@@ -245,7 +245,7 @@ function CalendarPost()
 			isAllowedTo('calendar_edit_' . (!empty($user_info['id']) && getEventPoster($_REQUEST['eventid']) == $user_info['id'] ? 'own' : 'any'));
 
 		// New - and directing?
-		if ($_REQUEST['eventid'] == -1 && (isset($_POST['link_to_board']) || empty($modSettings['allow_cal_unlinked'])))
+		if ($_REQUEST['eventid'] == -1 && (isset($_POST['link_to_board']) || empty($modSettings['cal_allow_unlinked'])))
 		{
 			$_REQUEST['calendar'] = 1;
 			require_once($sourcedir . '/Post.php');