aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-05-31 18:50:30 +0000
committerrvelices <rv-github@modusoptimus.com>2014-05-31 18:50:30 +0000
commit8b4857c7730a8c55396ac254c50a4ff1e0d8016b (patch)
tree480de7e1f2f81b54b95f4bd557926965f35cb996 /include/functions.inc.php
parentbd73ad9679430a1bc27beb78b24a1d64ab0509ec (diff)
quick search - small fixes & improvements
available number of comments per user do not use visible_categories (only forbidden) git-svn-id: http://piwigo.org/svn/trunk@28579 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index bdd430171..ecc799a55 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1176,16 +1176,16 @@ function conf_update_param($param, $value, $updateGlobal=false, $parser=null)
{
$dbValue = $value;
}
-
+
$query = '
INSERT INTO
'.CONFIG_TABLE.' (param, value)
VALUES(\''.$param.'\', \''.$dbValue.'\')
ON DUPLICATE KEY UPDATE value = \''.$dbValue.'\'
;';
-
+
pwg_query($query);
-
+
if ($updateGlobal)
{
global $conf;
@@ -1368,7 +1368,7 @@ function get_filter_page_value($value_name)
{
return $conf['filter_pages'][$page_name][$value_name];
}
- else if (isset($conf['filter_pages']['default'][$value_name]))
+ elseif (isset($conf['filter_pages']['default'][$value_name]))
{
return $conf['filter_pages']['default'][$value_name];
}
@@ -1994,8 +1994,7 @@ function get_nb_available_comments()
array
(
'forbidden_categories' => 'category_id',
- 'visible_categories' => 'category_id',
- 'visible_images' => 'ic.image_id'
+ 'forbidden_images' => 'ic.image_id'
),
'', true
);