Changeset 2029 for trunk/profile.php


Ignore:
Timestamp:
Jun 6, 2007, 12:01:15 AM (17 years ago)
Author:
rub
Message:

Resolved issue 0000697: with generic user a author name is necessary to comment picture.

+ Change way to determinate if user is a guest (use functions like is_admin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/profile.php

    r2014 r2029  
    207207function load_profile_in_template($url_action, $url_redirect, $userdata)
    208208{
    209   global $template;
     209  global $template, $conf;
    210210
    211211  $template->set_filename('profile_content', 'profile_content.tpl');
     
    294294  }
    295295
    296   if (!($userdata['is_the_guest'] or $userdata['is_the_default']))
     296  if (!(in_array($userdata['id'], array($conf['guest_id'], $conf['default_user_id']))))
    297297  {
    298298    $template->assign_block_vars('not_special_user', array());
Note: See TracChangeset for help on using the changeset viewer.