Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (14 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/include/functions_permalinks.php

    r4265 r4325  
    5252  $result = pwg_query($query);
    5353  $cat_id = null;
    54   if ( mysql_num_rows($result) )
    55     list( $cat_id ) = mysql_fetch_row($result);
     54  if ( pwg_db_num_rows($result) )
     55    list( $cat_id ) = pwg_db_fetch_row($result);
    5656  return $cat_id;
    5757}
     
    7373;';
    7474  $result = pwg_query($query);
    75   if ( mysql_num_rows($result) )
    76   {
    77     list($permalink) = mysql_fetch_row($result);
     75  if ( pwg_db_num_rows($result) )
     76  {
     77    list($permalink) = pwg_db_fetch_row($result);
    7878  }
    7979  if ( !isset($permalink) )
Note: See TracChangeset for help on using the changeset viewer.