Ignore:
Timestamp:
Mar 10, 2013, 5:12:50 PM (11 years ago)
Author:
mistic100
Message:

some code corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Subscribe_to_comments/include/subscribe_to_comments.inc.php

    r21439 r21441  
    264264function stc_on_album()
    265265{
    266   global $page, $template, $pwg_loaded_plugins, $user, $conf;
     266  global $page, $template, $user, $conf;
    267267 
    268268  if (
    269       script_basename() != 'index' or !isset($page['section']) or
    270       !isset($pwg_loaded_plugins['Comments_on_Albums']) or
    271       $page['section'] != 'categories' or !isset($page['category'])
     269      !defined('COA_ID') or script_basename() != 'index' or
     270      @$page['section'] != 'categories' or !isset($page['category'])
    272271    )
    273272  {
Note: See TracChangeset for help on using the changeset viewer.