diff --git a/class2.php b/class2.php index 9fa5000f7..d2ba60584 100644 --- a/class2.php +++ b/class2.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/class2.php,v $ -| $Revision: 1.42 $ -| $Date: 2008-01-06 22:16:37 $ -| $Author: mcfly_e107 $ +| $Revision: 1.43 $ +| $Date: 2008-01-09 22:00:22 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ // @@ -1221,7 +1221,7 @@ function init_session() { define("USERREALM", $result['user_realm']); define("USERVIEWED", $result['user_viewed']); define("USERIMAGE", $result['user_image']); - define("USERSESS", $result['user_sess']); + define("USERPHOTO", $result['user_sess']); $update_ip = ($result['user_ip'] != USERIP ? ", user_ip = '".USERIP."'" : ""); diff --git a/e107_files/shortcode/picture.sc b/e107_files/shortcode/picture.sc index 91edf959c..0b97eea8e 100644 --- a/e107_files/shortcode/picture.sc +++ b/e107_files/shortcode/picture.sc @@ -7,7 +7,7 @@ if(is_numeric($parm)) { if(intval($parm) == USERID) { - $image = USERSESS; + $image = USERPHOTO; } else { @@ -21,7 +21,7 @@ elseif($parm) } else { - $image = USERSESS; + $image = USERPHOTO; } if($image && file_exists(e_FILE."public/avatars/".$image)) {