Ignore:
Timestamp:
Jul 25, 2012, 1:43:35 PM (12 years ago)
Author:
plg
Message:

feature 2693 added: automatically show link to caddie if caddie not empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/admin.php

    r16929 r17008  
    220220}
    221221
     222// any photo in the caddie?
     223$query = '
     224SELECT COUNT(*)
     225  FROM '.CADDIE_TABLE.'
     226  WHERE user_id = '.$user['id'].'
     227;';
     228list($nb_photos_in_caddie) = pwg_db_fetch_row(pwg_query($query));
     229
     230if ($nb_photos_in_caddie > 0)
     231{
     232  $template->assign(
     233    array(
     234      'NB_PHOTOS_IN_CADDIE' => $nb_photos_in_caddie,
     235      'U_CADDIE' => $link_start.'batch_manager&cat=caddie',
     236      )
     237    );
     238}
     239
    222240// +-----------------------------------------------------------------------+
    223241// | Plugin menu                                                           |
Note: See TracChangeset for help on using the changeset viewer.