Ignore:
Timestamp:
Jan 28, 2011, 8:56:39 AM (13 years ago)
Author:
LucMorizur
Message:

Fix bug:2135

File:
1 edited

Legend:

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

    r7663 r8956  
    7777 */
    7878function ec_image_exists($cat, $img) {
    79   return (pwg_db_fetch_row(pwg_query("
     79  return (mysql_fetch_row(pwg_query("
    8080    SELECT *
    8181    FROM `".IMAGE_CATEGORY_TABLE."`
     
    8888 * str_from_var($var)
    8989 * returns a string easing array var informations displaying in Piwigo :
    90  *   _ the string return value starts with"<p style = "text-align:left;">" ;
     90 *   _ the string return value starts with"<p align="left">" ;
    9191 *   _ all "TAB" characters (chr(10)) are replaced by "<br>" ;
    9292 *   _ all spaces are replaced by "&nbsp;".
     
    9999function str_from_var($var) {
    100100  return
    101    '<p style = "text-align:left;">'.
     101   '<p align="left">'.
    102102   str_replace(
    103103    chr(10),'<br>',
     
    190190  if (defined('ADD_PAGES_TABLE')) {
    191191    $res = pwg_query("SELECT `id`, `title` FROM `".ADD_PAGES_TABLE."`;");
    192     while ($r = pwg_db_fetch_assoc($res)) {
     192    while ($r = mysql_fetch_array($res)) {
    193193      $a = (is_in($r['title'], '/user_id=')) ?
    194194       explode('/user_id=' , $r['title']) : array($r['title']);
     
    261261    SELECT *
    262262    FROM `".EVNTCATS_TABLE."`
    263     WHERE `code`   IS NOT NULL
    264       AND `action` IS NOT NULL
     263    WHERE `code` IS NOT NULL
    265264    ORDER BY `id`
    266265  ");
    267   while ($r = pwg_db_fetch_assoc($q))
     266  while ($r = mysql_fetch_assoc($q))
    268267   $ec_lists['ec_table'][intval($r['id'])] = $r;
    269268 
     
    332331 *   the global array variable $ec_lists.
    333332 * @return
    334  *   true or false whether duplication based on user type exists
    335  *   (user types are guest (0), contact (1), friend (2), family (4), and
    336  *   admin should be 8, but is not used, as admins can't duplicate; 8 is used
    337  *   for generic users, and is managed slightly differently as it is not
    338  *   actually a "user type")
     333 *   (no return value)
    339334 */
    340335function build_dup_groups() {
     
    383378  // certain group (in groups, level (friends, family, contacts),
    384379  // or user status (generic))
    385   $types_entry_exists = (($t = pwg_db_fetch_row(pwg_query("
     380  $types_entry_exists = (($t = mysql_fetch_row(pwg_query("
    386381    SELECT `arg2`
    387382    FROM `".EVNTCATS_TABLE."`
     
    483478          AND `user_id` > 2;
    484479      ");
    485       while ($row = pwg_db_fetch_assoc($result)) {
     480      while ($row = mysql_fetch_array($result)) {
    486481        if (!isset($user_granted_from_type[$row['level']])) {
    487482          $user_granted_from_type[$row['level']] = array();
     
    522517        AND `user_id` > 2;
    523518    ");
    524     while ($row = pwg_db_fetch_assoc($result)) {
     519    while ($row = mysql_fetch_array($result)) {
    525520      if (!isset($granted_groups[$row['group_id']])) {
    526521        $granted_groups[$row['group_id']] = array();
Note: See TracChangeset for help on using the changeset viewer.