Browse Source

Another array_intersect problem. Thanks asmith and feline for the bug report and th fix

emanuele 13 years ago
parent
commit
f5b373a401
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Subs-Members.php

+ 1 - 1
Sources/Subs-Members.php

@@ -587,7 +587,7 @@ function registerMember(&$regOptions, $return_errors = false)
 	);
 
 	// Can't change reserved vars.
-	if (isset($regOptions['theme_vars']) && array_intersect($regOptions['theme_vars'], $reservedVars) != array())
+	if (isset($regOptions['theme_vars']) && count(array_intersect(array_keys($regOptions['theme_vars']), $reservedVars)) != 0)
 		fatal_lang_error('no_theme');
 
 	// Some of these might be overwritten. (the lower ones that are in the arrays below.)