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/user_perm.php

    r25005 r25018  
    120120  while ($row = pwg_db_fetch_assoc($result))
    121121  {
    122     array_push($cats, $row);
    123     array_push($group_authorized, $row['cat_id']);
     122    $cats[] = $row;
     123    $group_authorized[] = $row['cat_id'];
    124124  }
    125125  usort($cats, 'global_rank_compare');
     
    153153while ($row = pwg_db_fetch_assoc($result))
    154154{
    155   array_push($authorized_ids, $row['id']);
     155  $authorized_ids[] = $row['id'];
    156156}
    157157
Note: See TracChangeset for help on using the changeset viewer.