Browse Source

Fixed critical typo preventing the unselection of options in admin section - see CT#529

Yannick Warnier 15 years ago
parent
commit
a1e6602ab0
2 changed files with 4 additions and 28 deletions
  1. 2 26
      main/admin/settings.php
  2. 2 2
      main/inc/lib/main_api.lib.php

+ 2 - 26
main/admin/settings.php

@@ -1,29 +1,5 @@
-<?php // $Id: settings.php 22316 2009-07-23 16:18:33Z cfasanando $
-/*
-==============================================================================
-	Dokeos - elearning and course management software
-
-	Copyright (c) 2004-2009 Dokeos SPRL
-	Copyright (c) 2003 Ghent University
-	Copyright (c) Patrick Cool, Ghent University
-	Copyright (c) Julio Montoya, Dokeos
-	Copyright (c) Roan Embrechts, Vrije Universiteit Brussel
-	Copyright (c) Bart Mollet, Hogeschool Gent
-
-	For a full list of contributors, see "credits.txt".
-	The full license can be read in "license.txt".
-
-	This program is free software; you can redistribute it and/or
-	modify it under the terms of the GNU General Public License
-	as published by the Free Software Foundation; either version 2
-	of the License, or (at your option) any later version.
-
-	See the GNU General Public License for more details.
-
-	Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
-	Mail: info@dokeos.com
-==============================================================================
-*/
+<?php
+/* For licensing terms, see /license.txt */
 /**
 ==============================================================================
 * With this tool you can easily adjust non critical configuration settings.

+ 2 - 2
main/inc/lib/main_api.lib.php

@@ -3232,7 +3232,7 @@ function api_set_settings_category($category, $value = null, $access_url = 1, $f
 			$i = 0;
 			foreach ($fieldtype as $type){
 				if ($i > 0) {
-					$sql .= ' 0R ';
+					$sql .= ' OR ';
 				}
 				$type = Database::escape_string($type);
 				$sql .= " type='".$type."' ";
@@ -3249,7 +3249,7 @@ function api_set_settings_category($category, $value = null, $access_url = 1, $f
 			$i = 0;
 			foreach ($fieldtype as $type){
 				if ($i > 0) {
-					$sql .= ' 0R ';
+					$sql .= ' OR ';
 				}
 				$type = Database::escape_string($type);
 				$sql .= " type='".$type."' ";