From 46318448464af7c432355a4dcb747f5bede90c97 Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 23 Feb 2012 15:12:42 +0000 Subject: [PATCH] search preferences issue --- e107_admin/search.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/e107_admin/search.php b/e107_admin/search.php index 1d077a99a..39e8d3ecf 100644 --- a/e107_admin/search.php +++ b/e107_admin/search.php @@ -2,16 +2,14 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2012 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * * Search Administration * - * $Source: /cvs_backup/e107_0.8/e107_admin/search.php,v $ - * $Revision$ - * $Date$ - * $Author$ + * $URL$ + * $Id$ * */ @@ -162,7 +160,7 @@ if (isset($_POST['update_prefs'])) $temp['selector'] = intval($_POST['selector']); $temp['time_restrict'] = intval($_POST['time_restrict']); $temp['time_secs'] = min(intval($_POST['time_secs']), 300); - $temp['mysql_sort'] = ($_POST['search_sort'] == 'mysql'); + $temp['mysql_sort'] = $_POST['search_sort'] ? 1 : 0; $temp['php_limit'] = intval($_POST['php_limit']); $temp['boundary'] = intval($_POST['boundary']);