Changeset 276

Show
Ignore:
Timestamp:
03/16/08 14:14:40 (9 months ago)
Author:
kevin
Message:

Fixed a major bug that prevented this from working for non-blog objects.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • z_acsext/acsext_access_level_check.php

    r224 r276  
    11<?php 
    22 
    3 $access = $parameter[0]; 
    4 $userid = $parameter[1]; 
     3$access = $parameter; 
     4 
     5if (isloggedin()) { 
     6    $userid = $_SESSION['userid']; 
     7} else { 
     8    $userid = 0; 
     9
    510 
    611if (substr_count($access, "friends") > 0 && is_numeric($userid) && $userid > 0) { 
    7     $me_num = (int) substr($access, 7, 15); 
     12    $me_num = (int) substr($access, 7); 
    813    if ($me_num == $userid) { 
    914            // I get to view my own content