Announcement

Collapse
No announcement yet.

Spelling mistake in /includes/functions.php?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spelling mistake in /includes/functions.php?

    I'm not sure if this is meant to be "$arry", but:
    Code:
    // ###################### Start array2bits #######################
    // takes an array and returns the bitwise value
    function convert_array_to_bits(&$arry, $_FIELDNAMES, $unset = 0)
    {
    $bits = 0;
    foreach($_FIELDNAMES AS $fieldname => $bitvalue)
    {
    if ($arry["$fieldname"] == 1)
    {
    $bits += $bitvalue;
    }
    if ($unset)
    {
    unset($arry["$fieldname"]);
    }
    }
    return $bits;
    }
    I was thinking that $arry should be $array...

    Right, or am I wrong?

    Satan

  • #2
    You're probably right but it doesn't matter that much since $arry is used throughout the function.
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

    Comment


    • #3
      Ah ok

      Satan

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X