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_perm.php

    r25005 r25018  
    8282  while ($row = pwg_db_fetch_assoc($result))
    8383  {
    84     array_push($private_uppercats, $row['id']);
     84    $private_uppercats[] = $row['id'];
    8585  }
    8686
     
    9999  while ($row = pwg_db_fetch_assoc($result))
    100100  {
    101     array_push($authorized_ids, $row['cat_id']);
     101    $authorized_ids[] = $row['cat_id'];
    102102  }
    103103
     
    106106  foreach ($to_autorize_ids as $to_autorize_id)
    107107  {
    108     array_push(
    109       $inserts,
    110       array(
    111         'group_id' => $page['group'],
    112         'cat_id' => $to_autorize_id
    113         )
     108    $inserts[] = array(
     109      'group_id' => $page['group'],
     110      'cat_id' => $to_autorize_id
    114111      );
    115112  }
     
    159156while ($row = pwg_db_fetch_assoc($result))
    160157{
    161   array_push($authorized_ids, $row['id']);
     158  $authorized_ids[] = $row['id'];
    162159}
    163160
Note: See TracChangeset for help on using the changeset viewer.