Skip to content

Commit

Permalink
fix normalized lang code bug #81
Browse files Browse the repository at this point in the history
  • Loading branch information
tematres committed Mar 27, 2023
1 parent 42695d2 commit 5de9d86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/include/fun.gral.php
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,15 @@ function checkT3instance(){

}


/**
* Create value from key array
* source: https://stackoverflow.com/a/8680364
*
* @param string $index key in array to assign
* @param array $var array to use as source value, if the value is null, the value is null.
*
* @return return $value as value
*/
function ifexistsidx($var,$index)
{
return(isset($var[$index]) ? $var[$index] : null);
Expand Down

0 comments on commit 5de9d86

Please sign in to comment.