Ignore:
Timestamp:
Oct 4, 2010, 11:53:53 PM (14 years ago)
Author:
LucMorizur
Message:

Preparation for feature:1891; remove mysql_num_rows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/evntcats_admin_funcs.inc.php

    r7066 r7099  
    176176      array_key_exists($_POST['ec_in_up_cat'], $ec_lists['categories'])
    177177    ) {
    178       if (mysql_num_rows(pwg_query("
     178      if (pwg_db_num_rows(pwg_query("
    179179        SELECT `id`
    180180        FROM `".CATEGORIES_TABLE."`
     
    403403      if (
    404404        !isset($_POST['ec_in_up_code']) or
    405         !ereg('^[a-zA-Z0-9_-]{4,32}$', $_POST['ec_in_up_code'])
     405        !preg_match('/^[a-zA-Z0-9_-]{4,32}$/', $_POST['ec_in_up_code'])
    406406      ) return ec_end1('ec_in_up_code', 'Improper code : ');
    407407      else $ec_code = $_POST['ec_in_up_code'];
     
    581581      FROM `".EVNTCATS_TABLE."`
    582582      WHERE `code` = '".$t1[0]."'
     583       AND `action` IS NOT NULL
    583584       AND `id` <> ".$_POST['ec_entry_sel']
    584585    );
     
    616617      $forced = ($forced == 'false') ? '' : l10n('ec_cnfrm_forced');
    617618      $page['infos'][] =
    618        sprintf(l10n('ec_entry_create_OK'), mysql_insert_id()).
     619       sprintf(l10n('ec_entry_create_OK'), pwg_db_insert_id()).
    619620       $ec_code.' => '.
    620621       $ec_lists['user_ids'][$ec_user_id].$forced
Note: See TracChangeset for help on using the changeset viewer.