Ignore:
Timestamp:
Oct 19, 2013, 7:43:04 PM (11 years ago)
Author:
mistic100
Message:

remove all array_push (50% slower than []) + some changes missing for feature:2978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/group_list.php

    r25005 r25018  
    4646  if (empty($_POST['groupname']))
    4747  {
    48     array_push($page['errors'], l10n('The name of a group must not contain " or \' or be empty.'));
     48    $page['errors'][] = l10n('The name of a group must not contain " or \' or be empty.');
    4949  }
    5050  if (count($page['errors']) == 0)
     
    5959    if ($count != 0)
    6060    {
    61       array_push($page['errors'], l10n('This name is already used by another group.'));
     61      $page['errors'][] = l10n('This name is already used by another group.');
    6262    }
    6363  }
     
    8787  if (count($groups) == 0)
    8888  {
    89     array_push($page['errors'], l10n('Select at least one group'));
     89    $page['errors'][] = l10n('Select at least one group');
    9090  }
    9191
     
    170170    if ($count != 0)
    171171    {
    172       array_push($page['errors'], l10n('This name is already used by another group.'));
     172      $page['errors'][] = l10n('This name is already used by another group.');
    173173    }
    174174    else
     
    256256      if ($count != 0)
    257257      {
    258         array_push($page['errors'], l10n('This name is already used by another group.'));
     258        $page['errors'][] = l10n('This name is already used by another group.');
    259259        break;
    260260      }
Note: See TracChangeset for help on using the changeset viewer.