Kaynağa Gözat

Minor Change

own3mall 8 yıl önce
ebeveyn
işleme
2d477a669b
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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;
 		}
 	}