Răsfoiți Sursa

Minor Change

own3mall 8 ani în urmă
părinte
comite
2d477a669b
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      includes/helpers.php

+ 2 - 1
includes/helpers.php

@@ -401,7 +401,8 @@ function getOGPLangConstantsJSON(){
 	$finalConsts = array();
 	$consts = get_defined_constants(true);
 	foreach($consts["user"] as $key => $value){
-		if(lcfirst($key) === $key[0]){
+		$firstCharLower = lcfirst($key);
+		if($firstCharLower[0] === $key[0]){
 			$finalConsts[$key] = $value;
 		}
 	}