Ignore:
Timestamp:
Oct 31, 2009, 4:59:48 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Tabs management improvement ; check code and user already exists in JS ; improve outdated action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/main.inc.php

    r4092 r4157  
    140140          if (array_key_exists($ec_cat, $ec_lists['categories'])) {
    141141            if (isset($ec_img)) {
    142               if (mysql_fetch_row(pwg_query('
    143                SELECT *
    144                FROM `'.IMAGE_CATEGORY_TABLE.'`
    145                WHERE `category_id` = '.$ec_cat.'
    146                 AND `image_id` = '.$ec_img
    147               ))) {
     142              if (ec_image_exists($ec_cat, $ec_img)) {
    148143                redirect(PHPWG_ROOT_PATH.'picture.php?/'.$ec_img.'/category/'.$ec_cat);
    149144              }
Note: See TracChangeset for help on using the changeset viewer.