Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (15 years ago)
Author:
nikrou
Message:

Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine

Fix small php code synxtax : hash must be accessed with [ ] and not { }.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_perm.php

    r4265 r4325  
    4646  WHERE id = '.$_GET['cat'].'
    4747;';
    48   list($status) = mysql_fetch_row(pwg_query($query));
     48  list($status) = pwg_db_fetch_row(pwg_query($query));
    4949 
    5050  if ('private' == $status)
     
    6363;';
    6464
    65   list($page['cat']) = mysql_fetch_row(pwg_query($query));
     65  list($page['cat']) = pwg_db_fetch_row(pwg_query($query));
    6666}
    6767
     
    111111;';
    112112  $result = pwg_query($query);
    113   while ($row = mysql_fetch_assoc($result))
     113  while ($row = pwg_db_fetch_assoc($result))
    114114  {
    115115    array_push($granteds[$row['cat_id']], $row['group_id']);
     
    170170;';
    171171  $result = pwg_query($query);
    172   while ($row = mysql_fetch_assoc($result))
     172  while ($row = pwg_db_fetch_assoc($result))
    173173  {
    174174    array_push($granteds[$row['cat_id']], $row['user_id']);
     
    275275';
    276276  $result = pwg_query($query);
    277   while ($row = mysql_fetch_assoc($result))
     277  while ($row = pwg_db_fetch_assoc($result))
    278278  {
    279279    if (!isset($granted_groups[$row['group_id']]))
Note: See TracChangeset for help on using the changeset viewer.