Permalink
Browse files

Fixed redeclared clean_conf_names when calling forum_config_remove in…

… cycle
  • Loading branch information...
1 parent c507109 commit d0ce937afbbec9d348c51052059786370517ce15 @ashcs ashcs committed Mar 10, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 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);

0 comments on commit d0ce937

Please sign in to comment.