Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed redeclared clean_conf_names when calling forum_config_remove in…

… cycle
  • Loading branch information...
commit d0ce937afbbec9d348c51052059786370517ce15 1 parent c507109
@ashcs ashcs authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 include/common_admin.php
View
9 include/common_admin.php
@@ -216,10 +216,13 @@ function forum_config_remove($name)
if (is_array($name) && count($name) > 0)
{
- function clean_conf_names($n)
+ if (!function_exists('clean_conf_names'))
{
- global $forum_db;
- return '\''.$forum_db->escape($n).'\'';
+ function clean_conf_names($n)
+ {
+ global $forum_db;
+ return '\''.$forum_db->escape($n).'\'';
+ }
}
$name = array_map('clean_conf_names', $name);
Please sign in to comment.
Something went wrong with that request. Please try again.